13 Commits
v0.2.0 ... main

Author SHA1 Message Date
bbbc5af26d fix: why just why 2024-03-09 00:59:01 +01:00
8f57966c0b WINDOWS 2024-03-09 00:50:54 +01:00
4fca381044 fix: add network tiemout 2024-03-09 00:39:14 +01:00
f9a2f2c73e fix: try removing yarn lock 2024-03-09 00:30:01 +01:00
9882f80eda fix: add bash shell 2024-03-09 00:22:32 +01:00
dbbf3dfbde move that up 2024-03-07 17:53:27 +00:00
2fc14ed72d oh common 2024-03-07 17:52:06 +00:00
1534584344 fix: builds 2024-03-07 17:48:47 +00:00
c36a4494a8 chore: update packages to fix vulns (see description)
also github actions now

[CVE-2024-27303](https://github.com/electron-userland/electron-builder/security/advisories/GHSA-r4pf-3v7r-hh55)
2024-03-07 17:39:52 +00:00
Jacob Nguyen
f3e882f89c bump ver 2024-02-29 18:08:05 -06:00
Jacob Nguyen
99d1936b7f test2 2024-02-29 17:47:30 -06:00
Jacob Nguyen
ce5a897044 test 2024-02-29 17:46:07 -06:00
aebedc1c1e fix: builds (forgor to bundle some stuff) 2023-12-29 20:32:07 +01:00
4 changed files with 810 additions and 1244 deletions

View File

@@ -1,50 +0,0 @@
version: 2.1
jobs:
build_windows:
docker:
- image: electronuserland/builder:wine
steps:
- checkout
- run: yarn
- run: yarn build-electron-win
- run: mkdir /tmp/artifacts
- run: mv -t /tmp/artifacts dist/*.exe
- store_artifacts:
path: /tmp/artifacts
build_linux:
docker:
- image: node:lts
steps:
- checkout
- run: yarn
- run: yarn build-electron-linux
- run: mkdir /tmp/artifacts
- run: mv -t /tmp/artifacts dist/*.AppImage
- store_artifacts:
path: /tmp/artifacts
build_macos:
macos:
xcode: 14.2.0
steps:
- checkout
- run: yarn
- run: yarn build-electron-mac
- run: mkdir /tmp/artifacts
- run: mv dist/*.dmg /tmp/artifacts
- store_artifacts:
path: /tmp/artifacts
workflows:
build:
jobs:
- hold:
type: approval
- build_windows:
requires:
- hold
- build_linux:
requires:
- hold
- build_macos:
requires:
- hold

63
.github/workflows/publish.yml vendored Normal file
View File

@@ -0,0 +1,63 @@
name: Build/release
on: push
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Check out Git repository
uses: actions/checkout@v1
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 20
- name: Install packages
run: yarn install --network-timeout 1000000
- name: Build electron index.ts file
run: yarn electron-build
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}
# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
# - name: Send POST request to update server
# if: startsWith(github.ref, 'refs/tags/v')
# run: |
# curl -X POST -H "Content-Type: application/json" -d '{"version": "${{ github.ref }}" }' https://automata.sern.dev/gui/newVersion
- name: Move artifacts
shell: bash
run: |
if [ "${{ matrix.os }}" == "windows-latest" ]; then
mkdir d:\\tmp\\artifacts
mv dist/*.exe d:\\tmp\\artifacts
else
mkdir -p /tmp/artifacts
if [ "${{ matrix.os }}" == "macos-latest" ]; then
mv dist/*.dmg /tmp/artifacts
else
mv dist/*.AppImage /tmp/artifacts
fi
fi
- name: Upload artifacts
uses: actions/upload-artifact@v1
with:
name: application
path: /tmp/artifacts

View File

@@ -1,7 +1,7 @@
{
"name": "sern-gui",
"private": true,
"version": "0.2.0",
"version": "0.2.1",
"main": "./dist/index.js",
"homepage": "./",
"scripts": {
@@ -11,7 +11,7 @@
"start": "vite",
"electron": "nodemon --watch electron/ --exec \"swc ./electron/ -d ./dist && npx electron .\" electron/index.ts",
"dev": "concurrently \"yarn start\" \"yarn electron\"",
"electron-build": "swc ./electron/index.ts -d ./dist",
"electron-build": "swc ./electron/ -d ./dist",
"build-electron": "yarn build && yarn electron-build && electron-builder --linux --windows",
"build-electron-linux": "yarn build && yarn electron-build && electron-builder --linux",
"build-electron-win": "yarn build && yarn electron-build && electron-builder --windows",
@@ -43,7 +43,7 @@
"@vitejs/plugin-react-swc": "^3.3.2",
"concurrently": "^8.2.2",
"electron": "^28.1.0",
"electron-builder": "^24.4.0",
"electron-builder": "^24.13.3",
"eslint": "^8.44.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.1",
@@ -56,7 +56,7 @@
"productName": "sern GUI",
"files": [
"./build/**/*",
"./dist/index.js"
"./dist/**/*"
],
"directories": {
"buildResources": "assets"

1933
yarn.lock

File diff suppressed because it is too large Load Diff