mirror of
https://github.com/digarok/buckshot.git
synced 2024-06-12 12:29:34 +00:00
appimage style ubuntu build
This commit is contained in:
parent
bf9f383068
commit
b4c7812c0d
36
.github/workflows/release.yml
vendored
36
.github/workflows/release.yml
vendored
|
@ -9,8 +9,8 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
#os: [ windows-latest, ubuntu-latest, macos-latest ]
|
#os: [ windows-latest, ubuntu-16.04, macos-latest ]
|
||||||
os: [ macos-latest ]
|
os: [ ubuntu-16.04 ]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- uses: ilammy/msvc-dev-cmd@v1
|
- uses: ilammy/msvc-dev-cmd@v1
|
||||||
|
@ -34,14 +34,28 @@ jobs:
|
||||||
dir
|
dir
|
||||||
dir release
|
dir release
|
||||||
|
|
||||||
- name: Package OSX Test
|
- name: Package Linux Test
|
||||||
|
if: matrix.os == 'ubuntu-16.04'
|
||||||
|
run: |
|
||||||
|
echo "== pwd"
|
||||||
|
pwd
|
||||||
|
echo "== ls -al"
|
||||||
|
ls -al
|
||||||
|
echo "== ls -al buckshot"
|
||||||
|
ls -al buckshot
|
||||||
|
echo " ++ GO TIME ++"
|
||||||
|
./package_linux.sh
|
||||||
|
ls -al buckshot-package-ubuntu
|
||||||
|
|
||||||
|
# EVERYTHING BELOW IS ONLY WHEN VERSION TAGS PUSHED (i.e. tag like "v0.1")
|
||||||
|
# Good
|
||||||
|
- name: Package OSX
|
||||||
if: matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-latest'
|
||||||
run: |
|
run: |
|
||||||
./package_mac.sh
|
./package_mac.sh
|
||||||
pip3 install dmgbuild
|
pip3 install dmgbuild
|
||||||
dmgbuild -s dmg-settings.json "buckshot" buckshot.dmg
|
dmgbuild -s dmg-settings.json "buckshot" buckshot.dmg
|
||||||
|
|
||||||
# EVERYTHING BELOW IS ONLY WHEN VERSION TAGS PUSHED (i.e. tag like "v0.1")
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
@ -52,6 +66,7 @@ jobs:
|
||||||
tag_name: ${{ github.ref }}
|
tag_name: ${{ github.ref }}
|
||||||
release_name: Release ${{ github.ref }}
|
release_name: Release ${{ github.ref }}
|
||||||
|
|
||||||
|
|
||||||
- name: Upload Mac Release
|
- name: Upload Mac Release
|
||||||
if: startsWith(github.ref, 'refs/tags/v') && matrix.os == 'macos-latest'
|
if: startsWith(github.ref, 'refs/tags/v') && matrix.os == 'macos-latest'
|
||||||
uses: actions/upload-release-asset@v1.0.1
|
uses: actions/upload-release-asset@v1.0.1
|
||||||
|
@ -62,3 +77,14 @@ jobs:
|
||||||
asset_path: ./buckshot.dmg
|
asset_path: ./buckshot.dmg
|
||||||
asset_name: buckshot.dmg
|
asset_name: buckshot.dmg
|
||||||
asset_content_type: application/octet-stream
|
asset_content_type: application/octet-stream
|
||||||
|
|
||||||
|
- name: Upload Ubuntu Latest Release
|
||||||
|
if: startsWith(github.ref, 'refs/tags/v') && matrix.os == 'ubuntu-16.04'
|
||||||
|
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-linux.zip
|
||||||
|
asset_name: buckshot-linux.zip
|
||||||
|
asset_content_type: application/octet-stream
|
||||||
|
|
|
@ -24,6 +24,10 @@ This project is written in C++ using the Qt framework. It calls out to two exte
|
||||||
|
|
||||||
You can build and run the project without it, but it won't be able to generate previews or save to ProDOS volumes without those 3rd-party binaries. The authors of those projects are not involved with this project, but have graciously encouraged my integration attempts with this software.
|
You can build and run the project without it, but it won't be able to generate previews or save to ProDOS volumes without those 3rd-party binaries. The authors of those projects are not involved with this project, but have graciously encouraged my integration attempts with this software.
|
||||||
|
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install build-essential
|
||||||
|
sudo apt-get install qt5
|
||||||
|
|
||||||
You will need to copy the binaries of those two programs for your platform to the build directory you are running.
|
You will need to copy the binaries of those two programs for your platform to the build directory you are running.
|
||||||
|
|
||||||
Example for Mac OSX "Release" build:
|
Example for Mac OSX "Release" build:
|
||||||
|
|
9
assets/buckshot.desktop
Normal file
9
assets/buckshot.desktop
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Version=1.0
|
||||||
|
Type=Application
|
||||||
|
Name=buckshot
|
||||||
|
Comment=Convert modern image formats to Apple II formats
|
||||||
|
Terminal=false
|
||||||
|
Categories=Utility;
|
||||||
|
Exec=AppRun %F
|
||||||
|
Icon=buckshot
|
39
package_linux.sh
Executable file
39
package_linux.sh
Executable file
|
@ -0,0 +1,39 @@
|
||||||
|
PACKAGEDIR=buckshot-package-ubuntu
|
||||||
|
APP=buckshot/buckshot
|
||||||
|
CONTENTDIR=${PACKAGEDIR}/buckshot.app/Contents
|
||||||
|
ASSETDIR=assets
|
||||||
|
|
||||||
|
ID=${0##*/}
|
||||||
|
|
||||||
|
echo "${ID}: MKDIR PACKAGEDIR"
|
||||||
|
mkdir -p $PACKAGEDIR
|
||||||
|
|
||||||
|
echo "${ID}: COPY APP -> PACKAGEDIR"
|
||||||
|
cp -r $APP $PACKAGEDIR
|
||||||
|
|
||||||
|
echo "${ID}: COPY EXTRA COMMON FILES"
|
||||||
|
cp README.md $PACKAGEDIR/README.txt
|
||||||
|
cp LICENSE.txt $PACKAGEDIR
|
||||||
|
cp assets/buckshot.desktop $PACKAGEDIR
|
||||||
|
cp assets/icon256.png $PACKAGEDIR/buckshot.png
|
||||||
|
|
||||||
|
|
||||||
|
echo "${ID}: DOWNLOAD UTILITY BINARIES"
|
||||||
|
curl -s -L -o cadius.zip https://github.com/digarok/cadius/releases/download/0.0.0/cadius-ubuntu-latest-0.0.0.zip
|
||||||
|
curl -s -L -o b2d.zip https://github.com/digarok/b2d/releases/download/v1.3/b2d-ubuntu-latest-v1.3.zip
|
||||||
|
unzip -o cadius.zip -d cadius
|
||||||
|
unzip -o b2d.zip -d b2d
|
||||||
|
echo "${ID}: COPY UTILITY BINARIES"
|
||||||
|
chmod +x b2d/b2d # @TODO: Fix me
|
||||||
|
cp b2d/b2d $PACKAGEDIR
|
||||||
|
cp cadius/cadius $PACKAGEDIR
|
||||||
|
|
||||||
|
echo "${ID}: INSTALL EXTRA DEV PACKAGES"
|
||||||
|
sudo apt-get install -y libxkbcommon-x11-0
|
||||||
|
|
||||||
|
echo "${ID}: RUN DEPLOY BUILD"
|
||||||
|
wget -nv https://github.com/probonopd/linuxdeployqt/releases/download/5/linuxdeployqt-5-x86_64.AppImage
|
||||||
|
chmod +x linuxdeployqt-5-x86_64.AppImage
|
||||||
|
./linuxdeployqt-5-x86_64.AppImage $PACKAGEDIR/buckshot -appimage -bundle-non-qt-libs -verbose=2
|
||||||
|
|
||||||
|
zip -r buckshot-linux.zip $PACKAGEDIR
|
|
@ -11,6 +11,8 @@ ID=${0##*/}
|
||||||
|
|
||||||
echo "${ID}: RUN macdeployqt"
|
echo "${ID}: RUN macdeployqt"
|
||||||
macdeployqt $APPBUILDDIR
|
macdeployqt $APPBUILDDIR
|
||||||
|
|
||||||
|
echo "${ID}: COPY APPBUILDDIR -> PACKAGEDIR"
|
||||||
cp -r $APPBUILDDIR $PACKAGEDIR
|
cp -r $APPBUILDDIR $PACKAGEDIR
|
||||||
|
|
||||||
echo "${ID}: COPY EXTRA FILES"
|
echo "${ID}: COPY EXTRA FILES"
|
||||||
|
@ -22,8 +24,8 @@ cp README.md $PACKAGEDIR/README.txt
|
||||||
cp LICENSE.txt $PACKAGEDIR
|
cp LICENSE.txt $PACKAGEDIR
|
||||||
|
|
||||||
echo "${ID}: DOWNLOAD UTILITY BINARIES"
|
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 -s -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
|
curl -s -L -o b2d.zip https://github.com/digarok/b2d/releases/download/v1.3/b2d-macos-latest-v1.3.zip
|
||||||
unzip -o cadius.zip -d cadius
|
unzip -o cadius.zip -d cadius
|
||||||
unzip -o b2d.zip -d b2d
|
unzip -o b2d.zip -d b2d
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user