mirror of
https://github.com/digarok/buckshot.git
synced 2024-11-30 20:49:51 +00:00
new package script for mac
This commit is contained in:
parent
48bc699efc
commit
30d7edeb9c
36
.github/workflows/release.yml
vendored
36
.github/workflows/release.yml
vendored
@ -37,12 +37,34 @@ jobs:
|
|||||||
- name: Package OSX Test
|
- name: Package OSX Test
|
||||||
if: matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-latest'
|
||||||
run: |
|
run: |
|
||||||
echo "----1"
|
./package_mac.sh
|
||||||
ls -al
|
# echo "----1"
|
||||||
echo "----2"
|
# ls -al
|
||||||
ls -al ..
|
# echo "----2"
|
||||||
echo "----3"
|
# ls -al ..
|
||||||
ls -al buckshot
|
# echo "----3"
|
||||||
macdeployqt buckshot/buckshot.app
|
# ls -al buckshot
|
||||||
|
# macdeployqt buckshot/buckshot.app
|
||||||
|
|
||||||
|
# EVERYTHING BELOW IS ONLY WHEN VERSION TAGS PUSHED (i.e. tag like "v0.1")
|
||||||
|
- name: Create Release
|
||||||
|
id: create_release
|
||||||
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
uses: actions/create-release@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
tag_name: ${{ github.ref }}
|
||||||
|
release_name: Release ${{ github.ref }}
|
||||||
|
|
||||||
|
- name: Upload Mac Release
|
||||||
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
if: matrix.os == 'macos-latest'
|
||||||
|
uses: actions/upload-release-asset@v1.0.1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
asset_path: ./buckshot.dmg
|
||||||
|
asset_name: buckshot.dmg
|
||||||
|
asset_content_type: application/octet-stream
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
|
Makefile
|
||||||
|
|
||||||
build-buckshot-Desktop*
|
build-buckshot-Desktop*
|
||||||
*.o
|
*.o
|
||||||
|
84
package_mac.sh
Executable file
84
package_mac.sh
Executable file
@ -0,0 +1,84 @@
|
|||||||
|
PACKAGEDIR=buckshot-package-osx
|
||||||
|
APPBUILDDIR=buckshot/buckshot.app
|
||||||
|
CONTENTDIR=${PACKAGEDIR}/buckshot.app/Contents
|
||||||
|
ASSETDIR=assets
|
||||||
|
|
||||||
|
ID=${0##*/}
|
||||||
|
|
||||||
|
# SET PATH
|
||||||
|
echo "${ID}: SET QT ENV"
|
||||||
|
. qt-env.sh
|
||||||
|
|
||||||
|
|
||||||
|
echo "${ID}: COPY EXTRA FILES"
|
||||||
|
mkdir -p $CONTENTDIR/MacOS
|
||||||
|
mkdir -p $CONTENTDIR/Resources
|
||||||
|
cp $ASSETDIR/Info.plist $CONTENTDIR
|
||||||
|
cp $ASSETDIR/icons.icns $CONTENTDIR/Resources
|
||||||
|
cp README.md $PACKAGEDIR/README.txt
|
||||||
|
cp LICENSE.txt $PACKAGEDIR
|
||||||
|
|
||||||
|
echo "${ID}: RUN macdeployqt"
|
||||||
|
macdeployqt $APPBUILDDIR
|
||||||
|
cp -r $APPBUILDDIR $PACKAGEDIR
|
||||||
|
|
||||||
|
echo "${ID}: DOWNLOAD UTILITY BINARIES"
|
||||||
|
curl -L -o cadius.zip https://github.com/digarok/cadius/releases/download/0.0.0/cadius-macos-latest-0.0.0.zip
|
||||||
|
curl -L -o b2d.zip https://github.com/digarok/b2d/releases/download/v1.3/b2d-macos-latest-v1.3.zip
|
||||||
|
unzip cadius.zip -d cadius
|
||||||
|
unzip b2d.zip -d b2d
|
||||||
|
|
||||||
|
chmod +x b2d/b2d # @TODO: Fix me
|
||||||
|
cp b2d/b2d $CONTENTDIR/MacOS
|
||||||
|
cp cadius/cadius $CONTENTDIR/MacOS
|
||||||
|
|
||||||
|
echo "${ID}: CREATE DMG"
|
||||||
|
git clone https://github.com/andreyvit/yoursway-create-dmg.git
|
||||||
|
cd yoursway-create-dmg
|
||||||
|
|
||||||
|
test -f buckshot.dmg && rm buckshot.dmg
|
||||||
|
./create-dmg \
|
||||||
|
--volname "buckshot" \
|
||||||
|
--volicon "../assets/icons.icns" \
|
||||||
|
--background "../assets/buckshot_dmg_bg_600x500.png" \
|
||||||
|
--window-pos 200 120 \
|
||||||
|
--window-size 600 500 \
|
||||||
|
--icon-size 100 \
|
||||||
|
--icon buckshot.app 180 130 \
|
||||||
|
--hide-extension buckshot.app \
|
||||||
|
--icon README.txt 200 330 \
|
||||||
|
--icon LICENSE.txt 410 330 \
|
||||||
|
--app-drop-link 410 130 \
|
||||||
|
--skip-jenkins \
|
||||||
|
buckshot.dmg \
|
||||||
|
../${PACKAGEDIR}/
|
||||||
|
cp buckshot.dmg ..
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
### NONE SHALLL OPPAAPSADFAPAPSFPSAPPGFPED
|
||||||
|
#############################################
|
||||||
|
SDIR=build-buckshot-Desktop_Qt_5_12_0_clang_64bit-Release/buckshot.app
|
||||||
|
DEXTRAS=buckshot-osx/
|
||||||
|
DDIR=buckshot-osx/buckshot.app
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
mkdir -p $DDIR
|
||||||
|
# make app bundle with qt frameworks using macdeployqt
|
||||||
|
~/Qt/5.12.0/clang_64/bin/macdeployqt $SDIR
|
||||||
|
# copy to dmg staging dir
|
||||||
|
cp -R $SDIR $DEXTRAS
|
||||||
|
|
||||||
|
# not needed?
|
||||||
|
#dylibbundler -od -b -x $DDIR/Contents/MacOS/buckshot -d $DDIR/Contents/libs/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# files to include in dmg
|
||||||
|
#cp doc/gsplusmanual.pdf $DEXTRAS
|
||||||
|
#cp doc/gsplusmanual.txt $DEXTRAS
|
||||||
|
|
||||||
|
# COPY BINARIES FROM EXTERNAL PROJECTS
|
Loading…
Reference in New Issue
Block a user