Skip to content

Commit

Permalink
install cpx
Browse files Browse the repository at this point in the history
  • Loading branch information
RukayatSalami committed Nov 1, 2023
1 parent e600d0b commit 3b7830b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/electron-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,15 @@ jobs:
mkdir -p ~/private_keys/
echo '${{ secrets.api_key }}' > ~/private_keys/AuthKey_${{ secrets.api_key_id }}.p8
- name: Install cpx
if: startsWith(matrix.os, 'desktop-build')
run: npm install -g cpx

- name: Build/release Electron app
if: startsWith(matrix.os, 'desktop-build')
uses: samuelmeuli/action-electron-builder@v1
with:
build_script_name: build:windows
build_script_name: pack:win
env:
# windows cert credentials
windows_certs: ${{ secrets.windows_certs }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"dist:mac": "electron-builder --mac",
"dist:linux": "electron-builder --linux --x64 --publish onTag",
"pack": "yarn && yarn build && yarn clean:dist && yarn dist",
"pack:win": "cmd /c yarn && yarn install:electron:dependencies && yarn clean:build && yarn copy:files && yarn build:prod && yarn build:electron && yarn clean:dist && yarn dist:win",
"pack:win": "cmd /c yarn && yarn install:electron:dependencies && yarn clean:build:windows && yarn copy:files && yarn build:prod && yarn build:electron && yarn clean:dist && yarn dist:win",
"test": "jest --config ./setup/jest.config.js",
"test:live": "yarn test -- --watch",
"cypress:open": "cypress open --project tests/cypress",
Expand Down

0 comments on commit 3b7830b

Please sign in to comment.