Skip to content

Commit

Permalink
Adding executable permission
Browse files Browse the repository at this point in the history
  • Loading branch information
csjones committed Sep 8, 2023
1 parent 3fa2a5b commit aa2682b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/publish-artifact-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/<VERSION>/$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/
24 changes: 12 additions & 12 deletions Resources/template.artifactbundle/info.json
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
{
"schemaVersion": "1.0",
"artifacts": {
"template": {
"<TEMPLATE>": {
"type": "executable",
"version": "<VERSION>",
"variants": [
{
"path": "template_<VERSION>_amd64.deb",
"path": "<TEMPLATE>_<VERSION>_amd64.deb",
"supportedTriples": ["x86_64-unknown-linux-deb"]
},
{
"path": "template_<VERSION>_amd64.rpm",
"path": "<TEMPLATE>_<VERSION>_amd64.rpm",
"supportedTriples": ["x86_64-unknown-linux-rpm"]
},
{
"path": "template_<VERSION>_arm64.deb",
"path": "<TEMPLATE>_<VERSION>_arm64.deb",
"supportedTriples": ["arm64-unknown-linux-deb"]
},
{
"path": "template_<VERSION>_arm64.rpm",
"path": "<TEMPLATE>_<VERSION>_arm64.rpm",
"supportedTriples": ["arm64-unknown-linux-rpm"]
},
{
"path": "template_<VERSION>_Linux_arm64",
"path": "<TEMPLATE>_<VERSION>_Linux_arm64",
"supportedTriples": ["arm64-unknown-linux"]
},
{
"path": "template_<VERSION>_Linux_x86_64",
"path": "<TEMPLATE>_<VERSION>_Linux_x86_64",
"supportedTriples": ["x86_64-unknown-linux"]
},
{
"path": "template_<VERSION>_MacOS_arm64",
"supportedTriples": ["arm64-apple-macosx"]
"path": "<TEMPLATE>_<VERSION>_MacOS_arm64",
"supportedTriples": ["arm64-apple-macosx"]
},
{
"path": "template_<VERSION>_MacOS_x86_64",
"path": "<TEMPLATE>_<VERSION>_MacOS_x86_64",
"supportedTriples": ["x86_64-apple-macos"]
},
{
"path": "template_<VERSION>_Windows_arm64.exe",
"path": "<TEMPLATE>_<VERSION>_Windows_arm64.exe",
"supportedTriples": ["arm64-unknown-windows"]
},
{
"path": "template_<VERSION>_Windows_x86_64.exe",
"path": "<TEMPLATE>_<VERSION>_Windows_x86_64.exe",
"supportedTriples": ["x86_64-unknown-windows"]
}
]
Expand Down

0 comments on commit aa2682b

Please sign in to comment.