Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Feb 2, 2025
1 parent 6fb67d6 commit a987668
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,12 @@ jobs:
# try and avoid timeout errors
yarn config set httpTimeout 100000
yarn
yarn --cwd webui install
- name: build & package (unsigned)
if: ${{ runner.environment != 'self-hosted' }}
run: |
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
export EB_UPDATE_CHANNEL=stable
elif [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
Expand All @@ -198,19 +204,20 @@ jobs:
export EB_UPDATE_CHANNEL=experimental
fi
yarn
yarn --cwd webui install
- name: build & package (unsigned)
if: ${{ runner.environment != 'self-hosted' }}
run: |
yarn dist win32-x64
env:
CI: 1

- name: build & package (signed)
if: ${{ runner.environment == 'self-hosted' }}
run: |
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
export EB_UPDATE_CHANNEL=stable
elif [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
export EB_UPDATE_CHANNEL=beta
elif [[ "${{ github.ref }}" == "refs/heads/develop" ]]; then
export EB_UPDATE_CHANNEL=experimental
fi
yarn dist win32-x64
env:
CI: 1
Expand Down
1 change: 1 addition & 0 deletions tools/build_electron.mts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ const satellitePkgJsonStr = await fs.readFile(satellitePkgJsonPath)

const satellitePkgJson = JSON.parse(satellitePkgJsonStr.toString())
satellitePkgJson.updateChannel = process.env.EB_UPDATE_CHANNEL
console.log('Injecting update channel: ' + satellitePkgJson.updateChannel)

await fs.writeFile(satellitePkgJsonPath, JSON.stringify(satellitePkgJson))

Expand Down

0 comments on commit a987668

Please sign in to comment.