Skip to content

Commit

Permalink
Added support for multiple target GIMP app bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
aferrero2707 committed Oct 9, 2018
1 parent 2c7b80b commit e07469e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
22 changes: 21 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,31 @@ matrix:
- mkdir plugins
- bash ./build-common-osx.sh
- bash ./${TARGET_PLUGIN}/build-osx.sh
#
- rm -rf plugins-fixed
- curl -L https://download.gimp.org/mirror/pub/gimp/v2.10/osx/gimp-2.10.6-x86_64.dmg -O
- hdiutil attach gimp-2.10.6-x86_64.dmg >& attach.log
- export MOUNT_POINT=$(cat attach.log | tr "\t" "\n" | tail -n 1)
- export GIMP_BUNDLE="$(find "$MOUNT_POINT" -depth 1 -name "*.app" | tail -n 1)"
- rm -f /tmp/gimp.app
- ln -s "$GIMP_BUNDLE" /tmp/gimp.app
- bash ./fix-dylib.sh
- ls plugins-fixed
- cd plugins-fixed
- tar czvf ../${TARGET_PLUGIN}-GIMP-2.10.6-OSX.tgz ??*
- tar czvf ../${TARGET_PLUGIN}-Gimp-2.10.6-OSX.tgz ??*
- cd ..
#
- rm -rf plugins-fixed
- curl -L https://www.partha.com/downloads/McGimp-2.10.6.app.zip -O
- unzip McGimp-2.10.6.app.zip
- rm -f /tmp/gimp.app
- ln -s "$(pwd)/McGimp-2.10.6.app" /tmp/gimp.app
- bash ./fix-dylib.sh
- ls plugins-fixed
- cd plugins-fixed
- tar czvf ../${TARGET_PLUGIN}-McGimp-2.10.6-OSX.tgz ??*
- cd ..
#
- wget -c https://github.com/aferrero2707/uploadtool/raw/master/upload_rotate.sh
- bash ./upload_rotate.sh "continuous" *.tgz
branches:
Expand Down
11 changes: 6 additions & 5 deletions fix-dylib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@

PLUGIN="$1"

curl -L https://download.gimp.org/mirror/pub/gimp/v2.10/osx/gimp-2.10.6-x86_64.dmg -O || exit 1
hdiutil attach gimp-2.10.6-x86_64.dmg >& attach.log || exit 1
#curl -L https://download.gimp.org/mirror/pub/gimp/v2.10/osx/gimp-2.10.6-x86_64.dmg -O || exit 1
#hdiutil attach gimp-2.10.6-x86_64.dmg >& attach.log || exit 1

#hdiutil attach ~/Downloads/gimp-2.10.6-x86_64.dmg >& attach.log
MOUNT_POINT=$(cat attach.log | tr "\t" "\n" | tail -n 1)
echo "MOUNT_POINT: $MOUNT_POINT"
#MOUNT_POINT=$(cat attach.log | tr "\t" "\n" | tail -n 1)
#echo "MOUNT_POINT: $MOUNT_POINT"

#TARGET="/Applications/GIMP-2.10.app"
#TARGET="/Applications/McGimp-2.10.6.app"
TARGET="$(find "$MOUNT_POINT" -depth 1 -name "*.app" | tail -n 1)"
#TARGET="$(find "$MOUNT_POINT" -depth 1 -name "*.app" | tail -n 1)"
TARGET="/tmp/gimp.app"
echo "TARGET: $TARGET"

#exit
Expand Down

0 comments on commit e07469e

Please sign in to comment.