From aa2682b7f709cc4331d60049fc2b8fb73318ef47 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 8 Sep 2023 00:13:44 -0700 Subject: [PATCH] Adding executable permission --- .github/workflows/publish-artifact-bundle.yml | 13 +++++----- Resources/template.artifactbundle/info.json | 24 +++++++++---------- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/.github/workflows/publish-artifact-bundle.yml b/.github/workflows/publish-artifact-bundle.yml index 1211c74..37b5ed5 100644 --- a/.github/workflows/publish-artifact-bundle.yml +++ b/.github/workflows/publish-artifact-bundle.yml @@ -45,13 +45,14 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Set info.json version run: | - echo "${{ inputs.binary_version }}" + # The example binary includes a leading 'v' in the release version number. We drop it on the next line. PLUGIN_VERSION="${PLUGIN_VERSION#?}" - echo "$PLUGIN_VERSION" sed -i '' "s//$PLUGIN_VERSION/g" Plugin-Repo/Resources/template.artifactbundle/info.json - cat Plugin-Repo/Resources/template.artifactbundle/info.json + - name: Add executable permissions + run: | + # The example binaries for MacOS need the executable permission added. + chmod +x "${{ env.PLUGIN_PATH }}/Resources/template.artifactbundle/lefthook_${PLUGIN_VERSION#?}_MacOS_arm64" + chmod +x "${{ env.PLUGIN_PATH }}/Resources/template.artifactbundle/lefthook_${PLUGIN_VERSION#?}_MacOS_x86_64" - name: Zip Artifact Bundle run: | - ls -a - zip -9 -r template.artifactbundl.zip ${{ env.PLUGIN_PATH }}/Resources/template.artifactbundle/ - ls -a + zip -9 -r template.artifactbundle.zip ${{ env.PLUGIN_PATH }}/Resources/template.artifactbundle/ diff --git a/Resources/template.artifactbundle/info.json b/Resources/template.artifactbundle/info.json index 61b44fc..64912a1 100644 --- a/Resources/template.artifactbundle/info.json +++ b/Resources/template.artifactbundle/info.json @@ -1,48 +1,48 @@ { "schemaVersion": "1.0", "artifacts": { - "template": { + "