Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
Fix electron build command
Browse files Browse the repository at this point in the history
  • Loading branch information
nop33 committed May 31, 2022
1 parent bee7aff commit c7f9c3f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 52 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
node-version: [14, 16]
node-version: [16]

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '14.x'
node-version: ${{ matrix.node-version }}
- run: npm ci
shell: bash
- run: npm run-script electron-pack-${{ steps.get-os.outputs.os }}
Expand Down
48 changes: 4 additions & 44 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,19 @@
"scripts": {
"build": "cross-env REACT_APP_VERSION=$npm_package_version INLINE_RUNTIME_CHUNK=false REACT_APP_CSP=\"script-src 'self'\" react-scripts build",
"electron-dev": "concurrently \"BROWSER=none npm run start\" \"wait-on http://localhost:3000 && electron .\"",
"electron-pack": "npm run build && npx electron-builder",
"electron-pack-windows": "npm run build && npx electron-builder -w",
"electron-pack-macos": "npm run build && npx electron-builder --mac --universal",
"electron-pack-ubuntu": "npm run build && npx electron-builder -l",
"electron-pack-linux:arm64": "npm run build && npx electron-builder -l --arm64",
"electron-pack": "npm run build && electron-builder build",
"electron-pack-windows": "npm run build && electron-builder build -w",
"electron-pack-macos": "npm run build && electron-builder build --mac --universal",
"electron-pack-ubuntu": "npm run build && electron-builder build -l",
"electron-pack-linux:arm64": "npm run build && electron-builder build -l --arm64",
"extension-build": "shx rm -rf build && npm run build && shx cp public/background.js public/manifest.json build",
"extension-pack": "npm run extension-build && web-ext build --source-dir=build --artifacts-dir=. --filename=alephium-wallet.zip --overwrite-dest",
"start": "cross-env REACT_APP_VERSION=$npm_package_version REACT_APP_CSP=\"script-src 'self' 'unsafe-inline'\" react-scripts start",
"test": "react-scripts test --silent",
"lint": "eslint . --ext .ts,.tsx --max-warnings=0",
"lint:fix": "eslint . --fix --ext .ts,.tsx",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\""
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\"",
"postinstall": "electron-builder install-app-deps"
},
"browserslist": {
"production": [
Expand Down

0 comments on commit c7f9c3f

Please sign in to comment.