From 1686e7ad0b8cd9e68b1d16375587e09b1c569a7e Mon Sep 17 00:00:00 2001 From: jeffvli Date: Sun, 12 Oct 2025 00:54:07 -0700 Subject: [PATCH] add separate beta publish scripts --- .github/workflows/publish-beta.yml | 12 ++++-------- .github/workflows/publish-linux.yml | 2 -- .github/workflows/publish-macos.yml | 1 - .github/workflows/publish-windows.yml | 1 - README.md | 12 ++++++++---- electron-builder.yml | 4 +--- package.json | 12 ++++++++---- 7 files changed, 21 insertions(+), 23 deletions(-) diff --git a/.github/workflows/publish-beta.yml b/.github/workflows/publish-beta.yml index e0febd0f..77aef95d 100644 --- a/.github/workflows/publish-beta.yml +++ b/.github/workflows/publish-beta.yml @@ -151,8 +151,7 @@ jobs: max_attempts: 3 retry_on: error command: | - pnpm run package:win - pnpm run publish:win + pnpm run publish:win:beta on_retry_command: pnpm cache delete - name: Build and Publish releases (macOS) @@ -166,8 +165,7 @@ jobs: max_attempts: 3 retry_on: error command: | - pnpm run package:mac - pnpm run publish:mac + pnpm run publish:mac:beta on_retry_command: pnpm cache delete - name: Build and Publish releases (Linux) @@ -181,8 +179,7 @@ jobs: max_attempts: 3 retry_on: error command: | - pnpm run package:linux - pnpm run publish:linux + pnpm run publish:linux:beta on_retry_command: pnpm cache delete - name: Build and Publish releases (Linux ARM64) @@ -196,8 +193,7 @@ jobs: max_attempts: 3 retry_on: error command: | - pnpm run package:linux-arm64 - pnpm run publish:linux-arm64 + pnpm run publish:linux-arm64:beta on_retry_command: pnpm cache delete edit-release: diff --git a/.github/workflows/publish-linux.yml b/.github/workflows/publish-linux.yml index 813b1afc..9b1b13d7 100644 --- a/.github/workflows/publish-linux.yml +++ b/.github/workflows/publish-linux.yml @@ -31,7 +31,6 @@ jobs: max_attempts: 3 retry_on: error command: | - pnpm run package:linux pnpm run publish:linux on_retry_command: pnpm cache delete @@ -44,6 +43,5 @@ jobs: max_attempts: 3 retry_on: error command: | - pnpm run package:linux-arm64 pnpm run publish:linux-arm64 on_retry_command: pnpm cache delete diff --git a/.github/workflows/publish-macos.yml b/.github/workflows/publish-macos.yml index 69fcc8dd..9772b09c 100644 --- a/.github/workflows/publish-macos.yml +++ b/.github/workflows/publish-macos.yml @@ -31,6 +31,5 @@ jobs: max_attempts: 3 retry_on: error command: | - pnpm run package:mac pnpm run publish:mac on_retry_command: pnpm cache delete diff --git a/.github/workflows/publish-windows.yml b/.github/workflows/publish-windows.yml index b69c0837..8c23d86e 100644 --- a/.github/workflows/publish-windows.yml +++ b/.github/workflows/publish-windows.yml @@ -31,6 +31,5 @@ jobs: max_attempts: 3 retry_on: error command: | - pnpm run package:win pnpm run publish:win on_retry_command: pnpm cache delete diff --git a/README.md b/README.md index 03f1dbfc..0373e8f1 100644 --- a/README.md +++ b/README.md @@ -157,14 +157,18 @@ This project is built off of [electron-vite](https://github.com/alex8088/electro - `pnpm run build:remote` - Build the remote app (remote) - `pnpm run build:web` - Build the standalone web app (renderer) - `pnpm run package` - Package the project -- `pnpm run package:dev` - Package the project for development -- `pnpm run package:linux` - Package the project for Linux -- `pnpm run package:mac` - Package the project for Mac -- `pnpm run package:win` - Package the project for Windows +- `pnpm run package:dev` - Package the project for development locally +- `pnpm run package:linux` - Package the project for Linux locally +- `pnpm run package:mac` - Package the project for Mac locally +- `pnpm run package:win` - Package the project for Windows locally - `pnpm run publish:linux` - Publish the project for Linux +- `pnpm run publish:linux:beta` - Publish the project for Linux (beta channel) - `pnpm run publish:linux-arm64` - Publish the project for Linux ARM64 +- `pnpm run publish:linux-arm64:beta` - Publish the project for Linux ARM64 (beta channel) - `pnpm run publish:mac` - Publish the project for Mac +- `pnpm run publish:mac:beta` - Publish the project for Mac (beta channel) - `pnpm run publish:win` - Publish the project for Windows +- `pnpm run publish:win:beta` - Publish the project for Windows (beta channel) - `pnpm run typecheck` - Type check the project - `pnpm run typecheck:node` - Type check the project with tsconfig.node.json - `pnpm run typecheck:web` - Type check the project with tsconfig.web.json diff --git a/electron-builder.yml b/electron-builder.yml index 03ab55c2..4e1e41eb 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -16,7 +16,6 @@ win: - zip - nsis icon: assets/icons/icon.png - generateUpdatesFilesForAllChannels: true nsis: allowToChangeInstallationDirectory: true @@ -38,7 +37,6 @@ mac: entitlementsInherit: assets/entitlements.mac.plist gatekeeperAssess: false notarize: false - generateUpdatesFilesForAllChannels: true dmg: contents: [{ x: 130, y: 220 }, { x: 410, y: 220, type: link, path: /Applications }] @@ -50,10 +48,10 @@ linux: category: AudioVideo;Audio;Player icon: assets/icons/icon.png artifactName: ${productName}-${os}-${arch}.${ext} - generateUpdatesFilesForAllChannels: true npmRebuild: false publish: provider: github owner: jeffvli repo: feishin + channel: latest diff --git a/package.json b/package.json index f3093287..ceedf24e 100644 --- a/package.json +++ b/package.json @@ -44,10 +44,14 @@ "package:mac:pr": "pnpm run build && electron-builder --mac --publish never", "package:win": "pnpm run build && electron-builder --win", "package:win:pr": "pnpm run build && electron-builder --win --publish never", - "publish:linux": "electron-builder --publish always --linux", - "publish:linux-arm64": "electron-builder --publish always --linux --arm64", - "publish:mac": "electron-builder --publish always --mac", - "publish:win": "electron-builder --publish always --win", + "publish:linux": "pnpm run build && electron-builder --publish always --linux", + "publish:linux-arm64": "pnpm run build && electron-builder --publish always --linux --arm64", + "publish:linux-arm64:beta": "pnpm run build && electron-builder --config electron-builder-beta.yml --publish always --linux --arm64", + "publish:linux:beta": "pnpm run build && electron-builder --config electron-builder-beta.yml --publish always --linux", + "publish:mac": "pnpm run build && electron-builder --publish always --mac", + "publish:mac:beta": "pnpm run build && electron-builder --config electron-builder-beta.yml --publish always --mac", + "publish:win": "pnpm run build && electron-builder --publish always --win", + "publish:win:beta": "pnpm run build && electron-builder --config electron-builder-beta.yml --publish never --win", "start": "electron-vite preview", "typecheck": "pnpm run typecheck:node && pnpm run typecheck:web", "typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false",