Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test #5413

Closed
wants to merge 1 commit into from
Closed

Test #5413

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions .github/workflows/electron-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,21 @@ jobs:
mkdir -p ~/private_keys/
echo '${{ secrets.api_key }}' > ~/private_keys/AuthKey_${{ secrets.api_key_id }}.p8

- name: Build/release Electron app
if: startsWith(matrix.os, 'desktop-build')
uses: samuelmeuli/action-electron-builder@v1
with:
# Specify the build script name for Windows
build_script_name: build:windows
env:
# windows cert credentials
windows_certs: ${{ secrets.windows_certs }}
windows_certs_password: ${{ secrets.windows_certs_password }}
github_token: ${{ secrets.github_token }}


- name: Build/release Electron app
if: startsWith(matrix.os, 'macos')
uses: samuelmeuli/action-electron-builder@v1
env:
# macOS notarization API key
Expand All @@ -68,6 +82,3 @@ jobs:
# (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') }}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"start": "cross-env DEBUG=true && yarn rebuild && electron ./app/",
"rebuild": "electron-rebuild -m app/node_modules/node-hid && electron-rebuild -m app/node_modules/usb",
"build": "yarn clean:build && yarn copy:files && yarn build:prod && yarn build:electron",
"build:windows": "yarn clean:build:windows && yarn copy:files && yarn build:prod && yarn build:electron",
"build:e2e": "yarn clean:build:e2e && yarn copy:files:e2e && yarn build:prod && yarn build:electron",
"build:prod": "cross-env NODE_OPTIONS='--openssl-legacy-provider' webpack --config ./setup/config/webpack.config.prod",
"build:electron": "cross-env NODE_OPTIONS='--openssl-legacy-provider' webpack --config ./setup/config/webpack.config.electron",
Expand All @@ -42,6 +43,7 @@
"analyze:bundles": "webpack --config ./setup/config/webpack.config.analyze",
"copy:files": "cpx \"./setup/react/{index.html,assets/**/*}\" \"./app/build/\"",
"clean:build": "rm -rf app/build",
"clean:build:windows": "rmdir /s /q app/build",
"copy:files:e2e": "cpx \"./setup/react/{index.html,assets/**/*}\" \"./app/${BUILD_NAME}/\"",
"clean:build:e2e": "rm -rf app/${BUILD_NAME}",
"clean:dist": "rm -rf dist",
Expand Down
Loading