mirror of
https://github.com/sern-handler/gui
synced 2026-06-06 09:26:54 +00:00
Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bbbc5af26d | |||
| 8f57966c0b | |||
| 4fca381044 | |||
| f9a2f2c73e | |||
| 9882f80eda | |||
| dbbf3dfbde | |||
| 2fc14ed72d | |||
| 1534584344 | |||
| c36a4494a8 | |||
|
|
f3e882f89c | ||
|
|
99d1936b7f | ||
|
|
ce5a897044 | ||
| aebedc1c1e |
@@ -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
63
.github/workflows/publish.yml
vendored
Normal 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
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user