Browse Source

Allow custom version on macOS generate-pkg script

Signed-off-by: falkTX <falktx@falktx.com>
tags/v1.9.20
falkTX 3 years ago
parent
commit
cd1efe94fa
2 changed files with 13 additions and 9 deletions
  1. +8
    -8
      .github/workflows/build.yml
  2. +5
    -1
      macosx/generate-pkg.sh

+ 8
- 8
.github/workflows/build.yml View File

@@ -46,13 +46,13 @@ jobs:
python ./waf configure --platform=darwin --prefix=/usr/local
python ./waf build -j $(sysctl -n hw.logicalcpu)
python ./waf install --destdir=$(pwd)/destdir
- name: Generate macOS package
shell: bash
run: |
./macosx/generate-pkg.sh $(pwd)/destdir
- name: Set sha8
id: slug
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
- name: Generate macOS package
shell: bash
run: |
./macosx/generate-pkg.sh $(pwd)/destdir ${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
- uses: actions/upload-artifact@v2
with:
name: jack2-macOS-intel-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
@@ -103,13 +103,13 @@ jobs:
#install_name_tool -change "${PAWPAW_PREFIX}/jack2/lib/libjack.0.dylib" "/usr/local/lib/libjack.0.dylib" "${f}"
#install_name_tool -change "${PAWPAW_PREFIX}/jack2/lib/libjacknet.0.dylib" "/usr/local/lib/libjacknet.0.dylib" "${f}"
#install_name_tool -change "${PAWPAW_PREFIX}/jack2/lib/libjackserver.0.dylib" "/usr/local/lib/libjackserver.0.dylib" "${f}"
- name: Generate macOS package
shell: bash
run: |
./macosx/generate-pkg.sh $(pwd)/destdir
- name: Set sha8
id: slug
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
- name: Generate macOS package
shell: bash
run: |
./macosx/generate-pkg.sh $(pwd)/destdir ${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
- uses: actions/upload-artifact@v2
with:
name: jack2-macOS-universal-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}


+ 5
- 1
macosx/generate-pkg.sh View File

@@ -15,7 +15,11 @@ fi

# ---------------------------------------------------------------------------------------------------------------------

VERSION=$(cat ../wscript | awk 'sub("VERSION=","")' | tr -d "'")
if [ -n "${2}" ]; then
VERSION="${2}"
else
VERSION=$(cat ../wscript | awk 'sub("VERSION=","")' | tr -d "'")
fi

rm -f jack2-osx-root.pkg
rm -f jack2-osx-${VERSION}.pkg


Loading…
Cancel
Save