mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
chore(ci): define forge platform at workflow level
This commit is contained in:
parent
98013bc725
commit
c477e728ea
13
.github/actions/build-electron/action.yml
vendored
13
.github/actions/build-electron/action.yml
vendored
@ -11,6 +11,8 @@ inputs:
|
|||||||
extension:
|
extension:
|
||||||
description: "Platform specific extensions to copy in the output: dmg, deb, rpm, exe, zip"
|
description: "Platform specific extensions to copy in the output: dmg, deb, rpm, exe, zip"
|
||||||
required: true
|
required: true
|
||||||
|
forge_platform:
|
||||||
|
required: true
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
@ -78,18 +80,9 @@ runs:
|
|||||||
APPLE_ID: ${{ env.APPLE_ID }}
|
APPLE_ID: ${{ env.APPLE_ID }}
|
||||||
APPLE_ID_PASSWORD: ${{ env.APPLE_ID_PASSWORD }}
|
APPLE_ID_PASSWORD: ${{ env.APPLE_ID_PASSWORD }}
|
||||||
run: |
|
run: |
|
||||||
# Map OS names to Electron Forge platform names
|
|
||||||
if [ "${{ inputs.os }}" = "macos" ]; then
|
|
||||||
PLATFORM="darwin"
|
|
||||||
elif [ "${{ inputs.os }}" = "windows" ]; then
|
|
||||||
PLATFORM="win32"
|
|
||||||
else
|
|
||||||
PLATFORM="${{ inputs.os }}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
npm run electron-forge:make -- \
|
npm run electron-forge:make -- \
|
||||||
--arch=${{ inputs.arch }} \
|
--arch=${{ inputs.arch }} \
|
||||||
--platform=$PLATFORM
|
--platform=${{ inputs.forge_platform }}
|
||||||
|
|
||||||
# Add DMG signing step
|
# Add DMG signing step
|
||||||
- name: Sign DMG
|
- name: Sign DMG
|
||||||
|
1
.github/workflows/nightly.yml
vendored
1
.github/workflows/nightly.yml
vendored
@ -25,6 +25,7 @@ jobs:
|
|||||||
- name: windows
|
- name: windows
|
||||||
image: windows-latest
|
image: windows-latest
|
||||||
extension: [exe, zip]
|
extension: [exe, zip]
|
||||||
|
forge_platform: win32
|
||||||
runs-on: ${{ matrix.os.image }}
|
runs-on: ${{ matrix.os.image }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user