Test resedit nodejs script #76
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Executables | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build Executables | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 14 | |
architecture: x64 | |
- run: ./scripts/executable.sh | |
env: | |
APPLE_DEV_CERT: ${{secrets.APPLE_DEV_CERT}} | |
APPLE_ID_USERNAME: ${{secrets.APPLE_ID_USERNAME}} | |
APPLE_ID_KEY: ${{secrets.APPLE_ID_KEY}} | |
APPLE_CERT_KEY: ${{secrets.APPLE_CERT_KEY}} | |
APPLE_TEAM_ID: ${{secrets.APPLE_TEAM_ID}} | |
- name: Verify executable | |
run: ./percy --version | |
- name: Upload win artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: win-exe | |
path: percy.exe | |
# - name: Upload app icon | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: percy.ico | |
# path: ./scripts/files/percy.ico | |
# - name: Upload assets | |
# uses: softprops/action-gh-release@d99959edae48b5ffffd7b00da66dcdb0a33a52ee | |
# with: | |
# files: | | |
# percy-osx.zip | |
# percy-linux.zip | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
notify: | |
needs: build | |
name: Sign Win Executable | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v1 | |
# - name: Download win artifact | |
# uses: actions/download-artifact@v4 | |
# with: | |
# name: percy.ico | |
- name: Download app icon artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: win-exe | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '14' # Specify the Node.js version you need | |
- name: Install resedit | |
run: npm install resedit | |
- name: Update metadata | |
run: node ./scripts/win-metadata-update.js | |
# - name: Sign binary | |
# uses: lando/code-sign-action@v2 | |
# with: | |
# file: ./percy.exe | |
# certificate-data: ${{ secrets.WINDOWS_CERT }} | |
# certificate-password: ${{ secrets.WINDOWS_CERT_KEY }} | |
- name: Verify executable | |
run: ./percy.exe --version | |
- name: Download Sigcheck | |
run: | | |
Invoke-WebRequest -Uri https://download.sysinternals.com/files/Sigcheck.zip -OutFile sigcheck.zip | |
Expand-Archive -Path sigcheck.zip -DestinationPath . | |
- name: Run Sigcheck | |
run: .\sigcheck.exe -a ./percy.exe | |
# - name: Upload win artifact | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: percy.exe | |
# path: percy.exe | |
# - run: | | |
# powershell -Command "Compress-Archive -Path 'percy.exe' -DestinationPath 'percy-win.zip'" | |
# - name: Upload assets | |
# uses: softprops/action-gh-release@d99959edae48b5ffffd7b00da66dcdb0a33a52ee | |
# with: | |
# files: | | |
# percy-win.zip | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |