Add compiler to macos img file (#73)
This commit is contained in:
@@ -41,7 +41,7 @@ script:
|
|||||||
make -j8;
|
make -j8;
|
||||||
sudo make install;
|
sudo make install;
|
||||||
sudo ../dist/macos/macdeploy.py strawberry.app;
|
sudo ../dist/macos/macdeploy.py strawberry.app;
|
||||||
../dist/macos/create-dmg.sh strawberry.app;
|
../dist/macos/create-dmg.sh strawberry.app $CC_FOR_BUILD;
|
||||||
fi
|
fi
|
||||||
after_success:
|
after_success:
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ls -lh strawberry.dmg; fi
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ls -lh strawberry.dmg; fi
|
||||||
|
|||||||
8
dist/macos/create-dmg.sh.in
vendored
8
dist/macos/create-dmg.sh.in
vendored
@@ -3,14 +3,18 @@
|
|||||||
version="@STRAWBERRY_VERSION_PACKAGE@"
|
version="@STRAWBERRY_VERSION_PACKAGE@"
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
echo "Usage: $0 <bundle.app>"
|
echo "Usage: $0 <bundle.app> (append)"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
name=$(basename "$1" | perl -pe 's/(.*).app/\1/')
|
name=$(basename "$1" | perl -pe 's/(.*).app/\1/')
|
||||||
bundle_dir="$1"
|
bundle_dir="$1"
|
||||||
temp_dir="dmg/$name"
|
temp_dir="dmg/$name"
|
||||||
output_file="$name-$version.dmg"
|
if [ -z "$2" ]; then
|
||||||
|
output_file="$name-$version.dmg"
|
||||||
|
else
|
||||||
|
output_file="$name-$2-$version.dmg"
|
||||||
|
fi
|
||||||
|
|
||||||
rm -rf "$temp_dir"
|
rm -rf "$temp_dir"
|
||||||
rm -f "$output_file"
|
rm -f "$output_file"
|
||||||
|
|||||||
Reference in New Issue
Block a user