Skip to content

Commit

Permalink
Update signing environment variables
Browse files Browse the repository at this point in the history
- stored secrets not yet renamed
  • Loading branch information
mtsgrd committed Sep 4, 2024
1 parent c5869eb commit 41ee5d5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ jobs:
--dist "./release" \
--version "${{ env.version }}"
env:
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
Expand Down
4 changes: 2 additions & 2 deletions apps/desktop/src/lib/backend/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export const UPDATE_INTERVAL_MS = 3600000; // Hourly
* Note that the Tauri API `checkUpdate` hangs indefinitely in dev mode, build
* a nightly if you want to test the updater manually.
*
* export TAURI_PRIVATE_KEY=doesnot
* export TAURI_KEY_PASSWORD=matter
* export TAURI_SIGNING_PRIVATE_KEY=doesnot
* export TAURI_SIGNING_PRIVATE_KEY_PASSWORD=matter
* ./scripts/release.sh --channel nightly --version "0.5.678"
*/
export class UpdaterService {
Expand Down
8 changes: 4 additions & 4 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,15 @@ done

[ -z "${VERSION-}" ] && error "--version is not set"

[ -z "${TAURI_PRIVATE_KEY-}" ] && error "$TAURI_PRIVATE_KEY is not set"
[ -z "${TAURI_KEY_PASSWORD-}" ] && error "$TAURI_KEY_PASSWORD is not set"
[ -z "${TAURI_SIGNING_PRIVATE_KEY-}" ] && error "$TAURI_SIGNING_PRIVATE_KEY is not set"
[ -z "${TAURI_SIGNING_PRIVATE_KEY_PASSWORD-}" ] && error "$TAURI_SIGNING_PRIVATE_KEY_PASSWORD is not set"

if [ "$CHANNEL" != "release" ] && [ "$CHANNEL" != "nightly" ]; then
error "--channel must be either 'release' or 'nightly'"
fi

export TAURI_PRIVATE_KEY="$TAURI_PRIVATE_KEY"
export TAURI_KEY_PASSWORD="$TAURI_KEY_PASSWORD"
export TAURI_SIGNING_PRIVATE_KEY="$TAURI_SIGNING_PRIVATE_KEY"
export TAURI_SIGNING_PRIVATE_KEY_PASSWORD="$TAURI_SIGNING_PRIVATE_KEY_PASSWORD"

if [ "$DO_SIGN" = "true" ]; then
if [ "$OS" = "macos" ]; then
Expand Down

0 comments on commit 41ee5d5

Please sign in to comment.