Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(ci): define forge platform at workflow level
Elian Doranc477e728ea21
diff --git a/.github/actions/build-electron/action.yml b/.github/actions/build-electron/action.ymlindex 2c168c7ac5..fb41ac392f 100644--- a/.github/actions/build-electron/action.yml+++ b/.github/actions/build-electron/action.yml@@ -11,6 +11,8 @@ inputs:extension:description: "Platform specific extensions to copy in the output: dmg, deb, rpm, exe, zip"required: true+ forge_platform:+ required: trueruns:using: composite@@ -78,18 +80,9 @@ runs:APPLE_ID: ${{ env.APPLE_ID }}APPLE_ID_PASSWORD: ${{ env.APPLE_ID_PASSWORD }}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 -- \--arch=${{ inputs.arch }} \- --platform=$PLATFORM+ --platform=${{ inputs.forge_platform }}# Add DMG signing step- name: Sign DMGdiff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.ymlindex 0a2b88baa6..eda9e3107e 100644--- a/.github/workflows/nightly.yml+++ b/.github/workflows/nightly.yml@@ -25,6 +25,7 @@ jobs:- name: windowsimage: windows-latestextension: [exe, zip]+ forge_platform: win32runs-on: ${{ matrix.os.image }}steps:- uses: actions/checkout@v4