Compare commits

...
Sign in to create a new pull request.

8 commits

Author SHA1 Message Date
ThinLiquid
fa9876cb21
Update bootloader.ts 2024-03-30 12:01:33 +00:00
ThinLiquid
76d60330ea
Update bootloader.ts 2024-03-30 11:59:55 +00:00
ThinLiquid
6bc0694776
Update bootloader.ts 2024-03-30 11:55:05 +00:00
ThinLiquid
a80ba8d598
Update deploy.yml 2024-02-14 18:26:27 +00:00
ThinLiquid
c1bcfe6023
Update deploy.yml 2024-02-14 18:15:16 +00:00
ThinLiquid
c43f16c5a3
Update and rename main.yml to deploy.yml 2024-02-14 18:11:15 +00:00
ThinLiquid
65c7db6793
Rename deploy.yml to main.yml 2024-02-14 18:09:36 +00:00
ThinLiquid
c9cff82d2d
Create deploy.yml 2024-02-14 18:08:24 +00:00
2 changed files with 55 additions and 1 deletions

49
.github/workflows/deploy.yml vendored Normal file
View file

@ -0,0 +1,49 @@
name: Deploy
on:
push:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
- name: Install dependencies
uses: bahmutov/npm-install@v1
- name: Build project
run: npx vite build --base="/FlowOS/"
- name: Upload production-ready build files
uses: actions/upload-artifact@v3
with:
name: production-files
path: ./dist
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: production-files
path: ./dist
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist

View file

@ -116,7 +116,12 @@ window.console.group = (...args: any) => {
try { try {
const args = new URLSearchParams(window.location.search) const args = new URLSearchParams(window.location.search)
const kernel = new Kernel() const kernel = new Kernel()
await kernel.boot(boot, progress, args) writeln('/-----------------------------------------------\\')
writeln('| FlowOS is now discontinued. Starting in 10s...|')
writeln('\\-----------------------------------------------/')
setTimeout(() => {
kernel.boot(boot, progress, args).catch(e => console.error(e))
}, 10000)
} catch (e) { } catch (e) {
writeln() writeln()
writeln('An error occured while booting FlowOS.') writeln('An error occured while booting FlowOS.')