Call package macos in build script and do not create disk image
This commit is contained in:
parent
33fe7295c0
commit
18bcfa7e54
|
@ -85,10 +85,10 @@ lite_build_package_windows () {
|
||||||
echo "created package $package_name"
|
echo "created package $package_name"
|
||||||
}
|
}
|
||||||
|
|
||||||
lite_build_package_macosx () {
|
lite_build_package_macos () {
|
||||||
local build="$1"
|
local build="$1"
|
||||||
local arch="$2"
|
local arch="$2"
|
||||||
local os="macosx"
|
local os="macos"
|
||||||
|
|
||||||
local appdir=".package-build/lite-xl.app"
|
local appdir=".package-build/lite-xl.app"
|
||||||
local bindir="$appdir/Contents/MacOS"
|
local bindir="$appdir/Contents/MacOS"
|
||||||
|
@ -110,10 +110,7 @@ lite_build_package_macosx () {
|
||||||
mv "$package_name" ..
|
mv "$package_name" ..
|
||||||
popd
|
popd
|
||||||
rm -fr ".package-build"
|
rm -fr ".package-build"
|
||||||
local dmg_name="lite-xl-$os-$arch.dmg"
|
|
||||||
rm -f "$dmg_name" && hdiutil create -volname lite-xl -srcfolder lite-xl.app -ov -format UDBZ "$dmg_name"
|
|
||||||
echo "created package $package_name"
|
echo "created package $package_name"
|
||||||
echo "created disk image $dmg_name"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
lite_build_package_linux () {
|
lite_build_package_linux () {
|
||||||
|
@ -161,7 +158,7 @@ lite_build_package () {
|
||||||
if [[ "$OSTYPE" == msys || "$OSTYPE" == win32 ]]; then
|
if [[ "$OSTYPE" == msys || "$OSTYPE" == win32 ]]; then
|
||||||
lite_build_package_windows "$@"
|
lite_build_package_windows "$@"
|
||||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
lite_build_package_macosx "$@"
|
lite_build_package_macos "$@"
|
||||||
elif [[ "$OSTYPE" == "linux"* || "$OSTYPE" == "freebsd"* ]]; then
|
elif [[ "$OSTYPE" == "linux"* || "$OSTYPE" == "freebsd"* ]]; then
|
||||||
lite_build_package_linux "$@"
|
lite_build_package_linux "$@"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue