diff --git a/.github/workflows/build-electron.yml b/.github/workflows/build-electron.yml index 162c75ab..b246acd3 100644 --- a/.github/workflows/build-electron.yml +++ b/.github/workflows/build-electron.yml @@ -31,28 +31,14 @@ jobs: - name: Fetch InVEST Binaries run: npm run fetch-invest - - name: NPM Install - run: npm install - - name: Run the build script run: npm run build - - name: Run electron-builder on macOS - if: matrix.os == 'macos-latest' - env: - GH_TOKEN: env.GITHUB_TOKEN - DEBUG: electron-builder - run: | - # use the built version as the entrypoint - # make sure we don't publish to github releases - npx --no-install electron-builder build --mac -c.extraMetadata.main=build/main.js --publish never - - - name: Run electron-builder on Windows - if: matrix.os == 'windows-latest' + - name: Run electron-builder env: GH_TOKEN: env.GITHUB_TOKEN DEBUG: electron-builder - run: npx --no-install electron-builder build --windows -c.extraMetadata.main=build/main.js --publish never + run: npm run dist # Also run all tests on the build dir code? - name: Test flask app binaries diff --git a/package.json b/package.json index e5c4432c..48f7cefb 100644 --- a/package.json +++ b/package.json @@ -14,8 +14,7 @@ "postinstall": "electron-builder install-app-deps", "fetch-invest": "node ./scripts/fetch_invest_binaries.js && unzip ./build/binaries.zip -d build/invest/", "build": "node ./build.js", - "dist": "electron-builder -c.extraMetadata.main=build/main.js", - "pack": "electron-builder --dir -c.extraMetadata.main=build/main.js" + "dist": "electron-builder build -c.extraMetadata.main=build/main.js --publish never" }, "build": { "extraResources": [