Skip to content

Build your personal knowledge base with Trilium Notes

Merge remote-tracking branch 'origin/develop' into build_add-rpm-electron

Elian Doran880c1537d457
diff --cc .github/actions/build-electron/action.yml
index 0000000000,f9dd2ffa57..0f85dd2605
mode 000000,100644..100644
--- a/.github/actions/build-electron/action.yml
+++ b/.github/actions/build-electron/action.yml
@@@ -1,0 -1,34 +1,39 @@@
+ inputs:
+ os:
+ description: "One of the supported platforms: macos, linux, windows"
+ required: true
+ arch:
+ description: "The architecture to build for: x64, arm64"
+ required: true
+ extension:
+ description: "Platform specific extension to build: dmg, deb, exe"
+ required: true
+ runs:
+ using: composite
+ steps:
+ - name: Set up Python for appdmg to be installed
+ if: ${{ inputs.os == 'macos' }}
+ shell: bash
+ run: brew install python-setuptools
++ - name: Install rpm on Ubuntu for RPM package building
++ if: ${{ inputs.os == 'linux' }}
++ shell: bash
++ run: sudo apt install rpm
+ - name: Install dependencies
+ shell: bash
+ run: npm ci
+ - name: Update build info
+ shell: bash
+ run: npm run update-build-info
+ - name: Run electron-forge
+ shell: bash
+ run: npm run make-electron -- --arch=${{ inputs.arch }}
+ - name: Prepare artifacts
+ shell: bash
+ run: |
- mkdir -p upload
- file=$(find out/make -name '*.zip' -print -quit)
- cp "$file" "upload/TriliumNextNotes-${{ github.ref_name }}-${{ inputs.os }}-${{ inputs.arch }}.zip"
- file=$(find out/make -name '*.${{ matrix.os.extension }}' -print -quit)
- cp "$file" "upload/TriliumNextNotes-${{ github.ref_name }}-${{ inputs.os }}-${{ inputs.arch }}.${{ matrix.os.extension }}"
++ mkdir -p upload;
++ for ext in ${{ join(inputs.extension, ' ') }};
++ do
++ file=$(find out/make -name "*.$ext" -print -quit);
++ cp "$file" "upload/TriliumNextNotes-${{ github.ref_name }}-${{ inputs.os }}-${{ inputs.arch }}.$ext";
++ done