From 1974211766deffdd091d82fa96218eb0eb33c13d Mon Sep 17 00:00:00 2001 From: RustyRaptor Date: Tue, 21 May 2019 11:14:45 -0600 Subject: [PATCH] Travis only generate a zip file for no --- .travis.yml | 12 ++++++------ tools/appimage/main.sh | 0 tools/appimage/main.yml | 24 ++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 6 deletions(-) create mode 100644 tools/appimage/main.sh create mode 100644 tools/appimage/main.yml diff --git a/.travis.yml b/.travis.yml index 12e9e6c..3eba34e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,8 +34,8 @@ script: #cd tools/rpm && sh generate_rpm.sh && cd ../../ & #cd tools/flatpak && sh generate_flatpak.sh && cd ../../ & #cd tools/snap && sh generate_snap.sh && cd ../../ & - cd tools/deb && sh generate_deb.sh && cd ../../ & - cd tools/appimage && sh gtk.sh && cd ../../ & + # cd tools/deb && sh generate_deb.sh && cd ../../ & + # cd tools/appimage && sh gtk.sh && cd ../../ & wait fi #windows @@ -60,9 +60,9 @@ script: # fi before_deploy: - - test -f tools/appimage/Baddleship.AppImage + # - test -f tools/appimage/Baddleship.AppImage # - test -f tools/deb/Baddleship.deb - # - test -f Baddleship-AppDir.zip + - test -f Baddleship-AppDir.zip # - test -f Baddleship-CLI-AppDir.zip # - test -f Baddleship-CLI-Windows-x86.zip # - test -f Baddleship-Windows-x86.zip @@ -83,9 +83,9 @@ deploy: api_key: secure: $GITHUB_TOKEN file: - - tools/appimage/Baddleship.AppImage + # - tools/appimage/Baddleship.AppImage # - tools/deb/Baddleship.deb - # - Baddleship-AppDir.zip + - Baddleship-AppDir.zip # - Baddleship-CLI-AppDir.zip # - Baddleship-CLI-Windows-x86.zip # - Baddleship-Windows-x86.zip diff --git a/tools/appimage/main.sh b/tools/appimage/main.sh new file mode 100644 index 0000000..e69de29 diff --git a/tools/appimage/main.yml b/tools/appimage/main.yml new file mode 100644 index 0000000..5f7e19b --- /dev/null +++ b/tools/appimage/main.yml @@ -0,0 +1,24 @@ +app: me.santamorena.drill +ingredients: + dist: trusty + sources: + - deb http://deb.debian.org/debian stretch main + packages: + - libgcc1 + +# create the necessary dirs + script: + - mkdir -p me.santamorena.drill.AppDir/usr + +# copy the assets + script: + - cd ../../../ + - cp Drill-CLI tools/appimage/me.santamorena.drill/me.santamorena.drill.AppDir/usr/Drill + - cp DRILL_VERSION tools/appimage/me.santamorena.drill/me.santamorena.drill.AppDir/usr/ + - chmod +x tools/appimage/me.santamorena.drill/me.santamorena.drill.AppDir/usr/Drill + - cp -r assets tools/appimage/me.santamorena.drill/me.santamorena.drill.AppDir/usr/ + - cd tools/appimage + - cp drill.sh me.santamorena.drill/me.santamorena.drill.AppDir/usr/ + - chmod +x me.santamorena.drill/me.santamorena.drill.AppDir/usr/drill.sh + - cp me.santamorena.drill.desktop me.santamorena.drill/me.santamorena.drill.AppDir + - cp ../../assets/icon.svg me.santamorena.drill/me.santamorena.drill.AppDir \ No newline at end of file