Skip to content

Commit

Permalink
improved pathing for signing commands
Browse files Browse the repository at this point in the history
  • Loading branch information
himwho committed Jul 30, 2024
1 parent 43767a1 commit c3e9134
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,37 +42,34 @@ jobs:
with:
repository: Mach1Studios/m1-juce-deps
path: JUCE_deps
token: ${{ secrets.CI_GH_ACCESS_TOKEN }}
ssh-key: ${{ secrets.HIMWHO_SSH_KEY }}
lfs: true
fetch-depth: 1

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
run: cmake -E make_directory $GITHUB_WORKSPACE/build

- name: Configure CMake (macos)
if: runner.os == 'MacOS'
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
working-directory: ${{ github.workspace }}/build
run: cmake ${{ github.workspace }} -DCMAKE_BUILD_TYPE=$BUILD_TYPE

- name: Configure CMake (windows)
if: runner.os == 'Windows'
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -A x64 -DCMAKE_BUILD_TYPE=$BUILD_TYPE
working-directory: ${{ github.workspace }}/build
run: cmake ${{ github.workspace }} -A x64 -DCMAKE_BUILD_TYPE=$BUILD_TYPE

- name: Build
working-directory: ${{runner.workspace}}/build
working-directory: ${{ github.workspace }}/build
shell: bash
run: cmake --build . --config $BUILD_TYPE

- name: Codesign (macos)
if: runner.os == 'MacOS'
working-directory: ${{runner.workspace}}/build
shell: bash
env:
DIST_DIR: ${{runner.workspace}}/build/M1-Notepad_artefacts/Release
WRAPTOOL: ${{runner.workspace}}/m1-notepad/JUCE_deps/PACEAntiPiracy_MAC/Eden/Fusion/Versions/5/bin/wraptool
DIST_DIR: ${{ github.workspace }}/build/M1-Notepad_artefacts/Release
WRAPTOOL: ${{ github.workspace }}/JUCE_deps/PACEAntiPiracy_MAC/Eden/Fusion/Versions/5/bin/wraptool
PACE_ID: ${{ secrets.PACE_ID }}
WRAP_GUID: ${{ secrets.M1_GLOBAL_GUID }}
APPLE_CODESIGN_ID: ${{ secrets.APPLE_CODESIGN_ID }}
Expand All @@ -81,10 +78,10 @@ jobs:
- name: Package (macos)
if: runner.os == 'MacOS'
working-directory: ${{runner.workspace}}/build
working-directory: ${{ github.workspace }}/build
shell: bash
env:
DIST_DIR: ${{runner.workspace}}/build/M1-Notepad_artefacts/Release
DIST_DIR: ${{ github.workspace }}/build/M1-Notepad_artefacts/Release
INSTALL_DIR: /Library/Audio/Plug-Ins
AAX_INSTALL_DIR: /Library/Application\ Support/Avid/Audio/Plug-Ins
BUNDLE_ID: ${{ env.BUNDLE_ID }}
Expand Down Expand Up @@ -120,35 +117,34 @@ jobs:
# - name: Codesign (windows)
# if: runner.os == 'Windows'
# working-directory: ${{runner.workspace}}/build
# shell: bash
# env:
# DIST_DIR: ${{runner.workspace}}\build\M1-Notepad_artefacts\Release
# WRAPTOOL: ${{runner.workspace}}\m1-notepad\JUCE_deps/PACEAntiPiracy_WIN/Eden/Fusion/Versions/5/wraptool.exe
# DIST_DIR: ${{ github.workspace }}\build\M1-Notepad_artefacts\Release
# WRAPTOOL: ${{ github.workspace }}\JUCE_deps/PACEAntiPiracy_WIN/Eden/Fusion/Versions/5/wraptool.exe
# PACE_ID: ${{ secrets.PACE_ID }}
# WRAP_GUID: ${{ secrets.M1_GLOBAL_GUID }}
# WIN_SIGNTOOL_ID: ${{ secrets.WIN_SIGNTOOL_ID }}
# run: $WRAPTOOL sign --verbose --account $PACE_ID --wcguid $WRAP_GUID --signid $WIN_SIGNTOOL_ID --in ${DIST_DIR}\AAX\M1-Notepad.aaxplugin --out ${DIST_DIR}\AAX\M1-Notepad.aaxplugin --autoinstall on

- name: InnoSetup Installer (windows)
if: runner.os == 'Windows'
working-directory: ${{runner.workspace}}/build
working-directory: ${{ github.workspace }}/build
run: |
"%programfiles(x86)%\Inno Setup 6\iscc.exe" /DBuildDir="${{runner.workspace}}\build\M1-Notepad_artefacts\Release" "${{runner.workspace}}\M1-Notepad\Resources\InnoSetup.iss"
"%programfiles(x86)%\Inno Setup 6\iscc.exe" /DBuildDir="$GITHUB_WORKSPACE\build\M1-Notepad_artefacts\Release" "$GITHUB_WORKSPACE\M1-Notepad\Resources\InnoSetup.iss"
shell: cmd

- name: 'Upload Artifact (macos)'
if: runner.os == 'MacOS'
uses: actions/upload-artifact@v2
with:
name: M1-Notepad (MacOS)
path: ${{runner.workspace}}/build/M1-Notepad_artefacts/Release/M1-Notepad.pkg
path: ${{ github.workspace }}/build/M1-Notepad_artefacts/Release/M1-Notepad.pkg
if-no-files-found: error

- name: 'Upload Artifact (windows)'
if: runner.os == 'Windows'
uses: actions/upload-artifact@v2
with:
name: M1-Notepad (Windows)
path: ${{runner.workspace}}\build\M1-Notepad_artefacts\Release\Output\M1-Notepad_WIN.exe
path: ${{ github.workspace }}\build\M1-Notepad_artefacts\Release\Output\M1-Notepad_WIN.exe
if-no-files-found: error

0 comments on commit c3e9134

Please sign in to comment.