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

ci: Fix make command for the different OS's #494

Draft
wants to merge 156 commits into
base: feat-v4
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
156 commits
Select commit Hold shift + click to select a range
1601b20
ci: Test workflow on macos-13
RobertGemmaJr May 21, 2024
ccd7d03
ci: Update github actions
RobertGemmaJr May 23, 2024
5fc26ef
build: Remove zip maker
RobertGemmaJr May 23, 2024
0b65b73
chore: upgrade
RobertGemmaJr May 23, 2024
712dd61
ci: Revert difference
RobertGemmaJr May 23, 2024
a60c6aa
ci: Fix ls
RobertGemmaJr May 23, 2024
37a05ec
ci: Test with mac 13 runner
RobertGemmaJr Jun 13, 2024
3b0b90d
ref: Use the split make commands
RobertGemmaJr Jun 13, 2024
140cb33
chore: upgrade
RobertGemmaJr Jun 13, 2024
38c4aca
ci: Test electron-rebuild
RobertGemmaJr Jun 13, 2024
f779833
ci: Test forced rebuild
RobertGemmaJr Jun 13, 2024
9a6100e
chore: comment
RobertGemmaJr Jun 13, 2024
4859309
ci: Test vite polyfills
RobertGemmaJr Jun 13, 2024
9f62ce4
ci: Test external with just serialport
RobertGemmaJr Jun 13, 2024
d6725a8
chore: uninstall polyfills
RobertGemmaJr Jun 13, 2024
9324588
ci: Test new package version
RobertGemmaJr Jun 13, 2024
00c252d
ci: Test or
RobertGemmaJr Jun 13, 2024
0eb0722
ci: Test base runners
RobertGemmaJr Jun 13, 2024
af096d9
ci: Test include if
RobertGemmaJr Jun 13, 2024
9831c7b
ci: Test again
RobertGemmaJr Jun 13, 2024
432f178
ci: Test exclude again
RobertGemmaJr Jun 13, 2024
270737e
ci: Wrap braces
RobertGemmaJr Jun 13, 2024
f66eb3f
ci: Add test step
RobertGemmaJr Jun 13, 2024
9645310
ci: Test workflow
RobertGemmaJr Jun 13, 2024
edd7f15
ci: revert to original workflow
RobertGemmaJr Jun 13, 2024
02a18a0
ci: Test new workflow
RobertGemmaJr Jun 14, 2024
3ef8018
ci: Use workflow test
RobertGemmaJr Jun 14, 2024
5cab15d
ci: Test the setup-matrix workflow
RobertGemmaJr Jun 14, 2024
359543b
ci: Update elif
RobertGemmaJr Jun 14, 2024
4beb48e
ci: Test check
RobertGemmaJr Jun 14, 2024
ffcaa6a
ci: Remove quotes
RobertGemmaJr Jun 14, 2024
ad7d07a
ci: Test echo matrix
RobertGemmaJr Jun 14, 2024
a054443
build: add format
eldu Jun 14, 2024
156562b
ci: Retest echo
RobertGemmaJr Jun 14, 2024
1a80ae3
ci: update the matrix
RobertGemmaJr Jun 14, 2024
79b1eda
ci: Test more echo
RobertGemmaJr Jun 14, 2024
87d07a7
ci: more testing
RobertGemmaJr Jun 14, 2024
5ed9aed
ci: more testing
RobertGemmaJr Jun 14, 2024
f587702
ci: new test
RobertGemmaJr Jun 14, 2024
d70bfe1
ci: Set array value
RobertGemmaJr Jun 14, 2024
26d0440
ci: Eho again
RobertGemmaJr Jun 14, 2024
caa486b
ci: Test again
RobertGemmaJr Jun 14, 2024
144fd91
ci: Update output
RobertGemmaJr Jun 14, 2024
a5f9d6d
wip: enable debug
eldu Jun 14, 2024
40bb777
ci: Check again
RobertGemmaJr Jun 14, 2024
6354a74
ci: short circut logic
RobertGemmaJr Jun 14, 2024
3c6f176
ci: Use summary
RobertGemmaJr Jun 14, 2024
2dbb1c8
ci: Test output again
RobertGemmaJr Jun 14, 2024
689c78c
ci: Cleanup
RobertGemmaJr Jun 14, 2024
7066a3b
ci: matrix with full workflow
RobertGemmaJr Jun 14, 2024
0c8c7dd
ci: update name
RobertGemmaJr Jun 14, 2024
7d6e6a1
ci: print name and version
RobertGemmaJr Jun 14, 2024
50fe398
wip: add in osxSign
eldu Jun 14, 2024
ad6719d
ci: ignore fail-fast
RobertGemmaJr Jun 14, 2024
f8bd098
ci: Test package info again
RobertGemmaJr Jun 14, 2024
b6f7c38
ci: test again
RobertGemmaJr Jun 14, 2024
f2ae33c
ci: Test with checking out
RobertGemmaJr Jun 14, 2024
424e0cc
ci: Check more testing with printing the name and version
RobertGemmaJr Jun 14, 2024
82746f7
ci: test with tree
RobertGemmaJr Jun 14, 2024
b915201
ci: just output
RobertGemmaJr Jun 14, 2024
498fe73
build: take out debug and format
eldu Jun 14, 2024
49a4a41
ci: Update workflow actionsd
RobertGemmaJr Jun 14, 2024
5b61f9a
ci: Update echo
RobertGemmaJr Jun 14, 2024
f074bb2
ci: Test ENV variable
RobertGemmaJr Jun 14, 2024
457812c
ci: check environment
RobertGemmaJr Jun 14, 2024
a4c9fea
ci: test comment out
RobertGemmaJr Jun 14, 2024
16a9a4b
ci: test again
RobertGemmaJr Jun 14, 2024
4ffe879
ci: Test name and version again
RobertGemmaJr Jun 14, 2024
3c1c157
ci: Test new name and version
RobertGemmaJr Jun 14, 2024
62a2296
ci: Test new paths
RobertGemmaJr Jun 14, 2024
bb8fdc9
ci: update job name
RobertGemmaJr Jun 14, 2024
68b66a0
ci: test new way of getting env
RobertGemmaJr Jun 14, 2024
ee0bc2b
ci: Fix "
RobertGemmaJr Jun 14, 2024
2241e13
ci: Update path name
RobertGemmaJr Jun 14, 2024
e96e222
ci: test with env variable again
RobertGemmaJr Jun 14, 2024
d9108b6
ci: update path
RobertGemmaJr Jun 14, 2024
393e18b
ci: remove test from set matrix
RobertGemmaJr Jun 14, 2024
8a44e6b
ci: Update make command
RobertGemmaJr Jun 14, 2024
4817e23
ci: Use bash
RobertGemmaJr Jun 14, 2024
6332cd7
ci: Use a seperate command
RobertGemmaJr Jun 14, 2024
b6bed5f
ci: Move check for the package info
RobertGemmaJr Jun 14, 2024
1b303a5
ci: Update with env name
RobertGemmaJr Jun 14, 2024
7268781
ci: Update echo
RobertGemmaJr Jun 14, 2024
b9d4b64
ci: Update test again
RobertGemmaJr Jun 14, 2024
e29415a
ci: Add setup repo step
RobertGemmaJr Jun 14, 2024
510b9a0
ci: Test step
RobertGemmaJr Jun 14, 2024
152e63a
ci: Test setup
RobertGemmaJr Jun 14, 2024
8ca0c27
ci: TEst echo again
RobertGemmaJr Jun 14, 2024
002406d
ci: update test job
RobertGemmaJr Jun 14, 2024
407a445
ci: fix quotes
RobertGemmaJr Jun 14, 2024
80a8d34
ci: Test installer name
RobertGemmaJr Jun 14, 2024
d14fbab
ci: Test another os name
RobertGemmaJr Jun 14, 2024
41298b2
ci: Test echo again
RobertGemmaJr Jun 14, 2024
febe265
ci: Test again
RobertGemmaJr Jun 14, 2024
497956e
ci: Test new echo
RobertGemmaJr Jun 14, 2024
23fc1a8
ci: FIx echo
RobertGemmaJr Jun 14, 2024
797e567
ci: New print
RobertGemmaJr Jun 14, 2024
a9df812
ci: Fix
RobertGemmaJr Jun 14, 2024
8fa6277
ci: Update variables for the output files name
RobertGemmaJr Jun 14, 2024
a1d7ab1
ci: Test new upload
RobertGemmaJr Jun 14, 2024
2ff3899
ci: Update to x64 maker for mac
RobertGemmaJr Jun 14, 2024
bfee273
build: add in format ULFO
eldu Jun 14, 2024
dd8229a
chore: TODOs
RobertGemmaJr Jun 17, 2024
c11a13a
ci: Test upload as a single job
RobertGemmaJr Jun 17, 2024
b609974
ci: Update upload path for mac
RobertGemmaJr Jun 17, 2024
b9af9ed
ci: Update extract info
RobertGemmaJr Jun 17, 2024
9a29d57
ci: Update os outputname
RobertGemmaJr Jun 17, 2024
e9bf6e9
ci: Echo os name early
RobertGemmaJr Jun 17, 2024
b8d6a15
ci: Update packageName
RobertGemmaJr Jun 17, 2024
c0e1685
ci: fix variable name
RobertGemmaJr Jun 17, 2024
baa7dae
ci: Use package name and version internally
RobertGemmaJr Jun 17, 2024
2cdb53a
ci: Fix quote
RobertGemmaJr Jun 17, 2024
f65f19f
ci: test without string
RobertGemmaJr Jun 17, 2024
484b310
ci: Temp - move of info extraction
RobertGemmaJr Jun 17, 2024
8abb7b5
chore: cleanup uneeded code
RobertGemmaJr Jun 17, 2024
51d4871
ci: Check early again
RobertGemmaJr Jun 17, 2024
1a1d4f1
ci: Test again
RobertGemmaJr Jun 17, 2024
d37cda8
ci: Test with internal quotes
RobertGemmaJr Jun 17, 2024
afe5b5d
ci: Test double quotes
RobertGemmaJr Jun 17, 2024
ac4c26f
ci: Test more double quotes
RobertGemmaJr Jun 17, 2024
454ba3e
ci: TEst again
RobertGemmaJr Jun 17, 2024
b233771
ci: underscores
RobertGemmaJr Jun 17, 2024
779e26f
ci: Test brackets
RobertGemmaJr Jun 17, 2024
eb99ee4
ci: dfouble quotes again
RobertGemmaJr Jun 17, 2024
abb64f5
ci: Cleanup
RobertGemmaJr Jun 17, 2024
e6a4a29
chore: comments and such
RobertGemmaJr Jun 17, 2024
db0d7da
ci: Test env
RobertGemmaJr Jun 17, 2024
45ae173
ci: update name
RobertGemmaJr Jun 17, 2024
6e5a600
ci: test again
RobertGemmaJr Jun 17, 2024
4c65aa6
ci: remove uneeded step
RobertGemmaJr Jun 17, 2024
c2aee5c
ci: test echo of path again
RobertGemmaJr Jun 17, 2024
2705241
ci: test echo once nmroe
RobertGemmaJr Jun 17, 2024
c791573
ci: remove extrta line
RobertGemmaJr Jun 17, 2024
1eaa43c
chore: remove comment
RobertGemmaJr Jun 17, 2024
ddef3cd
ci: Add option for seperate mac builds
RobertGemmaJr Jun 17, 2024
dfc863b
ci: Update dropdown options
RobertGemmaJr Jun 17, 2024
4458fe1
ci: Fix mac again
RobertGemmaJr Jun 17, 2024
02ac649
ci: Fix ubuntu path
RobertGemmaJr Jun 17, 2024
7924996
chore: spacing
RobertGemmaJr Jun 17, 2024
568ecbe
Merge branch 'feat-v4' into ci-fix-make
RobertGemmaJr Jun 17, 2024
71e9747
chore: upgrade
RobertGemmaJr Jun 17, 2024
b2a3a03
chore: format
RobertGemmaJr Jun 18, 2024
6432a6f
fix: Revert fuse plugins
RobertGemmaJr Jun 18, 2024
167b152
chore: lock
RobertGemmaJr Jun 18, 2024
8cfc9c1
fix: Update fuse
RobertGemmaJr Jun 18, 2024
06d440a
fix: Fix issue with building the files
RobertGemmaJr Jun 20, 2024
8ab174d
fix: Fix electorn fuses
RobertGemmaJr Jun 20, 2024
39b0778
chore: update comments
RobertGemmaJr Jun 24, 2024
700ccc9
Update forge.config.js
RobertGemmaJr Jun 24, 2024
b47be6c
Merge branch 'feat-v4' into ci-fix-make
RobertGemmaJr Jun 24, 2024
feaead8
Merge branch 'feat-v4' into ci-fix-make
RobertGemmaJr Jun 24, 2024
4edd9ed
Merge branch 'ci-fix-make' into ci-fix-make-ellen
RobertGemmaJr Jun 24, 2024
173730a
Merge pull request #495 from brown-ccv/ci-fix-make-ellen
RobertGemmaJr Jul 17, 2024
e9d4fdb
Merge branch 'feat-v4' into ci-fix-make
RobertGemmaJr Jul 31, 2024
41b351b
Merge branch 'build-deps' into ci-fix-make
RobertGemmaJr Jul 31, 2024
0cc6d0a
Merge branch 'feat-v4' into ci-fix-make
RobertGemmaJr Aug 5, 2024
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
128 changes: 69 additions & 59 deletions .github/workflows/workflow-package.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Workflow dispatch for packaging an electron executable
name: 📦 Package Workflow

# Workflow dispatch for packaging an electron executable
on:
workflow_dispatch:
inputs:
Expand All @@ -14,98 +14,108 @@ on:
description: Package the app for 'home' or 'clinic' use
os:
type: choice
options:
- "All"
- "Windows"
- "macOS"
- "Linux"
default: "All"
description: Which operating system to make executables for
required: true
description: Which OS to package
default: "All"
options:
- "all"
- "windows"
- "mac-x64"
- "mac-arm64"
- "linux"

jobs:
setup-job:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Set matrix
id: set-matrix
run: |
[ ${{ github.event.inputs.os }} == windows ] && matrix='["windows-latest"]'
[ ${{ github.event.inputs.os }} == mac-x64 ] && matrix='["macOS-13"]'
[ ${{ github.event.inputs.os }} == mac-arm64 ] && matrix='["macOS-latest"]'
[ ${{ github.event.inputs.os }} == linux ] && matrix='["ubtuntu-latest"]'
[ ${{ github.event.inputs.os }} == all ] && matrix='["windows-latest", "macOS-13", "macOS-latest", "ubuntu-latest"]'
echo "matrix=$matrix" >> $GITHUB_OUTPUT

package-and-upload:
name: Package and Upload
name: Package and Upload Installer
needs: setup-job
runs-on: ${{ matrix.os }}

# Run action for [home/clinic] in [windows/macOS/ubuntu] based on user input
strategy:
matrix:
os: ${{
(github.event.inputs.os == 'All' && fromJSON('["ubuntu-latest", "macOS-latest", "windows-latest"]')) ||
(github.event.inputs.os == 'Windows' && fromJSON('["windows-latest"]')) ||
(github.event.inputs.os == 'macOS' && fromJSON('["macOS-latest"]')) ||
(github.event.inputs.os == 'Linux' && fromJSON('["ubuntu-latest"]')) }}
os: ${{ fromJson(needs.setup-job.outputs.matrix) }}
fail-fast: false # A failed build will not end the other matrix jobs

steps:
- name: Extact OS short name
id: os_name
shell: bash
run: |
[ ${{ matrix.os }} == windows-latest ] && osShortName='windows'
[ ${{ matrix.os }} == macOS-13 ] && osShortName='mac-x64'
[ ${{ matrix.os }} == macOS-latest ] && osShortName='mac-arm64'
[ ${{ matrix.os }} == ubuntu-latest ] && osShortName='linux'
echo name=$osShortName >> $GITHUB_OUTPUT

# Set up runner
- name: ⬇️ Checkout repo
uses: actions/checkout@v4

- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- name: 🐍 Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.12

# Install dependencies and set up environment
# Install dependencies
- name: 🅿️ Install Python tools
run: pip install setuptools
- name: 📥 Install Dependencies
run: npm ci

# Set up the environment
- name: 🔃 Load .env file (.env.${{github.event.inputs.setting}})
uses: xom9ikk/dotenv@v2
# Set up the environment
- name: 🔃 Load .env file - .env.${{github.event.inputs.setting}}
uses: xom9ikk/dotenv@v2.3.0
with:
path: ./env
mode: ${{github.event.inputs.setting}}

# Package the app and make the installers
- name: 📦 Make app installer - Windows
if: startsWith(matrix.os, 'windows')
run: npm run make:windows
- name: 📦 Make app installer - Mac
if: startsWith(matrix.os, 'mac')
run: npm run make:mac
- name: 📦 Make app installer - Linux
if: startsWith(matrix.os, 'ubuntu')
run: npm run make:linux
# Make the installers
- name: 📦 Make app installer
shell: bash
run: npm run make:${{ steps.os_name.outputs.name }}

# Get package info
- name: Get package name and version
id: package_info
run: |
echo "name=$(cat package.json | jq -r '.name')" >> $GITHUB_OUTPUT
echo "version=$(cat package.json | jq -r '.version')" >> $GITHUB_OUTPUT
# Extract the file's path and outfile's name
- name: Extract installer info
id: installer_info
shell: bash
run: |
packageName=$(jq -r '.name' package.json)
packageVersion=$(jq -r '.version' package.json)

# Upload installers to github action
# TODO @brown-ccv #247: Can we use the publish command here?
- name: ⬆ Upload installer - Windows
uses: actions/upload-artifact@v3
if: startsWith(matrix.os, 'windows')
with:
name: ${{ format('win-installer-{0}', github.event.inputs.setting) }}
path: out/make/squirrel.windows/x64/${{ steps.package_info.outputs.name }}-${{ steps.package_info.outputs.version }} Setup.exe
if-no-files-found: error
name="${packageName}-${packageVersion}-${{github.event.inputs.setting}}-${{steps.os_name.outputs.name}}"
echo name=$name >> $GITHUB_OUTPUT

- name: ⬆ Upload installer - Mac
uses: actions/upload-artifact@v3
if: startsWith(matrix.os, 'mac')
with:
name: ${{ format('mac-installer-{0}', github.event.inputs.setting) }}
path: out/make/${{ steps.package_info.outputs.name }}-${{ steps.package_info.outputs.version }}-universal.dmg
if-no-files-found: error
- name: ⬆ Upload installer - Linux
uses: actions/upload-artifact@v3
if: startsWith(matrix.os, 'ubuntu')
if [[ ${{ matrix.os }} == windows-latest ]]; then
path="out/make/squirrel.windows/x64/${packageName}-${packageVersion} Setup.exe"
elif [[ ${{ matrix.os }} == macOS-13 ]]; then
path="out/make/${packageName}-${packageVersion}-x64.dmg"
elif [[ ${{ matrix.os }} == macOS-latest ]]; then
path="out/make/${packageName}-${packageVersion}-arm64.dmg"
elif [[ ${{ matrix.os }} == ubuntu-latest ]]; then
path="out/make/deb/x64/${packageName}_${packageVersion}_amd64.deb"
fi
echo path=$path >> $GITHUB_OUTPUT

- name: ⬆ Upload installer
uses: actions/upload-artifact@v4
with:
name: ${{ format('linux-installer-{0}', github.event.inputs.setting) }}
path: out/make/deb/x64/${{ steps.package_info.outputs.name }}_${{ steps.package_info.outputs.version }}_amd64.deb
name: ${{steps.installer_info.outputs.name}}
path: ${{steps.installer_info.outputs.path}}
if-no-files-found: error
58 changes: 58 additions & 0 deletions .github/workflows/workflow-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: 🧪 Test Dispatch

# Workflow dispatch for packaging an electron executable
on:
workflow_dispatch:
inputs:
setting:
type: choice
options:
- "home"
- "clinic"
default: "home"
required: true
description: Package the app for 'home' or 'clinic' use
os:
type: choice
description: Which operating system to make executables for
required: true
default: "All"
options:
- "All"
- "Windows"
- "macOS"
- "Linux"

jobs:
test-dispatch:
name: Test Dispatch
runs-on: ${{ matrix.os }}

# Run action for [home/clinic] in [windows/macOS/ubuntu] based on user input
strategy:
matrix:
# TODO: There's got to be a better way to handle this?
# os: ${{
# (github.event.inputs.os == 'All' && fromJSON('["ubuntu-latest", "macOS-13", "windows-latest"]')) ||
# (github.event.inputs.os == 'Windows' && fromJSON('["windows-latest"]')) ||
# (github.event.inputs.os == 'macOS' && fromJSON('["macOS-13"]')) ||
# (github.event.inputs.os == 'Linux' && fromJSON('["ubuntu-latest"]')) }}
os:
- ubuntu-latest
- macOS-latest
- windows-latest
exclude:
- os: ubuntu-latest
if: ${{ github.event.inputs.os != 'All' && github.event.inputs.os != 'Linux' }}
- os: macOS-latest
if: ${{ github.event.inputs.os != 'All' && github.event.inputs.os != 'macOS' }}
- os: windows-latest
if: ${{ github.event.inputs.os != 'All' && github.event.inputs.os != 'Windows' }}
fail-fast: false # A failed build will not end the other matrix jobs

steps:
# Set up runner
- name: ⬇️ Checkout repo
uses: actions/checkout@v4

- run: echo ${{ runner.os }}
8 changes: 2 additions & 6 deletions forge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export default {
packagerConfig: {
asar: true,
icon: "assets/icons/icon",
osxSign: {},
},
makers: [
{
Expand Down Expand Up @@ -32,10 +33,6 @@ export default {
},
},
},
{
// zip files
name: "@electron-forge/maker-zip",
},
],
plugins: [
{ name: "@electron-forge/plugin-auto-unpack-natives", config: {} },
Expand All @@ -62,12 +59,11 @@ export default {
version: FuseVersion.V1,
[FuseV1Options.RunAsNode]: false, // Disables ELECTRON_RUN_AS_NODE
[FuseV1Options.GrantFileProtocolExtraPrivileges]: true, // Grants the file protocol extra privileges (for the built application)
[FuseV1Options.EnableCookieEncryption]: false, // Disables cookie encryption
[FuseV1Options.EnableCookieEncryption]: true, // Enables cookie encryption
[FuseV1Options.EnableNodeOptionsEnvironmentVariable]: false, // Disables the NODE_OPTIONS environment variable
[FuseV1Options.EnableNodeCliInspectArguments]: false, // Disables the --inspect and --inspect-brk family of CLI options
[FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: true, // Enforces validation of the app.asar archive on macOS
[FuseV1Options.OnlyLoadAppFromAsar]: true, // Enforces that Electron will only load your app from "app.asar" instead of its normal search paths
[FuseV1Options.LoadBrowserProcessSpecificV8Snapshot]: true, // Loads V8 Snapshot from `browser_v8_context_snapshot.bin` for the browser process
},
},
],
Expand Down
57 changes: 0 additions & 57 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
"@electron-forge/maker-deb": "^7.4.0",
"@electron-forge/maker-dmg": "^7.4.0",
"@electron-forge/maker-squirrel": "^7.4.0",
"@electron-forge/maker-zip": "^7.4.0",
"@electron-forge/plugin-auto-unpack-natives": "^7.4.0",
"@electron-forge/plugin-vite": "^7.4.0",
"@inquirer/prompts": "^5.3.6",
Expand Down Expand Up @@ -89,8 +88,9 @@
"build:turk-prolific": "dotenv -e env/.env.turk-prolific npm run build",
"make": "electron-forge make",
"make:windows": "electron-forge make --arch x64 --targets @electron-forge/maker-squirrel",
"make:mac-x64": "electron-forge make --arch x64 --targets @electron-forge/maker-dmg",
"make:mac-arm64": "electron-forge make --arch arm64 --targets @electron-forge/maker-dmg",
"make:linux": "electron-forge make --arch x64 --targets @electron-forge/maker-deb",
"make:mac": "electron-forge make --arch universal --targets @electron-forge/maker-dmg",
"cli": "node cli.mjs",
"commit": "git-cz",
"format": "prettier --write .",
Expand Down
1 change: 1 addition & 0 deletions src/Electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ function createWindow() {
mainWindow.loadURL(MAIN_WINDOW_VITE_DEV_SERVER_URL);
} else {
// TODO @brown-ccv: JsPsych protections for loading from a file://
log.info("LOADING RENDERER IN PRODUCTION");
mainWindow.loadFile(path.join(__dirname, `../renderer/${MAIN_WINDOW_VITE_NAME}/index.html`));
}
log.info("Loaded Renderer process");
Expand Down
Loading