chore(ci): use cmd

This commit is contained in:
Elian Doran 2025-03-23 21:10:55 +02:00
parent c50a67f36b
commit 98013bc725
No known key found for this signature in database

View File

@ -38,21 +38,21 @@ runs:
- name: Verify certificates - name: Verify certificates
if: inputs.os == 'macos' if: inputs.os == 'macos'
shell: bash shell: cmd
run: | run: |
echo "Available signing identities:" echo "Available signing identities:"
security find-identity -v -p codesigning build.keychain security find-identity -v -p codesigning build.keychain
- name: Set up Python and other macOS dependencies - name: Set up Python and other macOS dependencies
if: ${{ inputs.os == 'macos' }} if: ${{ inputs.os == 'macos' }}
shell: bash shell: cmd
run: | run: |
brew install python-setuptools brew install python-setuptools
brew install create-dmg brew install create-dmg
- name: Install dependencies for RPM and Flatpak package building - name: Install dependencies for RPM and Flatpak package building
if: ${{ inputs.os == 'linux' }} if: ${{ inputs.os == 'linux' }}
shell: bash shell: cmd
run: | run: |
sudo apt-get update && sudo apt-get install rpm flatpak-builder elfutils sudo apt-get update && sudo apt-get install rpm flatpak-builder elfutils
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
@ -62,16 +62,16 @@ runs:
# Build setup # Build setup
- name: Install dependencies - name: Install dependencies
shell: bash shell: cmd
run: npm ci run: npm ci
- name: Update build info - name: Update build info
shell: bash shell: cmd
run: npm run chore:update-build-info run: npm run chore:update-build-info
# Critical debugging configuration # Critical debugging configuration
- name: Run electron-forge build with enhanced logging - name: Run electron-forge build with enhanced logging
shell: bash shell: cmd
env: env:
# Pass through required environment variables for signing and notarization # Pass through required environment variables for signing and notarization
APPLE_TEAM_ID: ${{ env.APPLE_TEAM_ID }} APPLE_TEAM_ID: ${{ env.APPLE_TEAM_ID }}
@ -94,7 +94,7 @@ runs:
# Add DMG signing step # Add DMG signing step
- name: Sign DMG - name: Sign DMG
if: inputs.os == 'macos' if: inputs.os == 'macos'
shell: bash shell: cmd
run: | run: |
echo "Signing DMG file..." echo "Signing DMG file..."
dmg_file=$(find ./dist -name "*.dmg" -print -quit) dmg_file=$(find ./dist -name "*.dmg" -print -quit)
@ -119,7 +119,7 @@ runs:
- name: Verify code signing - name: Verify code signing
if: inputs.os == 'macos' if: inputs.os == 'macos'
shell: bash shell: cmd
run: | run: |
echo "Verifying code signing for all artifacts..." echo "Verifying code signing for all artifacts..."
@ -167,7 +167,7 @@ runs:
fi fi
- name: Prepare artifacts - name: Prepare artifacts
shell: bash shell: cmd
run: | run: |
mkdir -p upload mkdir -p upload