Allow custom version on macOS generate-pkg script

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2021-07-31 14:48:50 +01:00
parent ee8a800f91
commit cd1efe94fa
2 changed files with 13 additions and 9 deletions

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 }}

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