Permalink
Browse files

Create macOS dmg

  • Loading branch information...
cknave committed Oct 13, 2017
1 parent 871dbde commit a3ea5bddc7be6ca537e2713463a503b4eda24a8e
View
@@ -9,6 +9,7 @@
/dosbox/kevedos.iso
/inst/dist
/inst/platform/windows/kevedit.iss
/inst/platform/windows/kevedit.rc
/inst/vendor/SDL*
/inst/vendor/kevedit*
/inst/work
View
@@ -85,10 +85,10 @@ def build_macos(source, args):
docker run
-v {work}:/work -v {dist}:/dist -v {platform}:/platform -v {vendor}:/vendor
-u {uid_gid}
kevedit/build_macos /platform/macos/build_macos.sh {source}
kevedit/build_macos /platform/macos/build_macos.sh {source} {version}
""",
work=WORK_DIR, dist=DIST_DIR, platform=PLATFORM_DIR, vendor=VENDOR_DIR,
source=source, uid_gid=UID_GID)
source=source, uid_gid=UID_GID, version=args.version)
def build_windows(source, args):
@@ -1,4 +1,6 @@
#!/bin/sh
# KevEdit DOS build script
# Run in kevedit/build_dos container
set -e -x
SOURCE="$1"
@@ -1,4 +1,6 @@
#!/bin/sh
# KevEdit linux AppImage build script
# Run in kevedit/build_appimage container
set -e -x
SOURCE="$1"
@@ -0,0 +1,18 @@
{
"title": "KevEdit",
"background": "dmg background.png",
"contents": [
{
"x": 125,
"y": 175,
"type": "file",
"path": "KevEdit.app"
},
{
"x": 355,
"y": 175,
"type": "link",
"path": "/Applications"
}
]
}
Binary file not shown.
Binary file not shown.
@@ -1,9 +1,12 @@
#!/bin/sh
# KevEdit macOS build script
# Run in kevedit/build_macos container
set -e -x
SOURCE="$1"
if [ -z "$SOURCE" ]; then
echo "USAGE: build_macos.sh <source.zip>"
VERSION="$2"
if [ -z "$SOURCE" ] || [ -z "$VERSION" ]; then
echo "USAGE: build_macos.sh <source.zip> <kevedit version>"
exit 1
fi
@@ -38,5 +41,19 @@ cp -a ../../docs/kevedit.zml \
/platform/macos/kevedit.icns \
/work/KevEdit.app/Contents/Resources/
rm -rf /dist/KevEdit.app
cp -a /work/KevEdit.app /dist
rm -rf /work/dmg
mkdir /work/dmg
cp -a /work/KevEdit.app /work/dmg/
ln -s /Applications /work/dmg/
mkdir /work/dmg/.background
cp -a /platform/macos/background.tiff \
/work/dmg/.background/dmg\ background.tiff
cp -a /platform/macos/dmg.DS_Store \
/work/dmg/.DS_Store
genisoimage -V KevEdit -D -R -apple -no-pad \
-o "/dist/KevEdit-${VERSION}.dmg" \
/work/dmg/
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,4 +1,6 @@
#!/bin/sh
# KevEdit windows build script
# Run in kevedit/build_windows container
set -e -x
SOURCE="$1"

0 comments on commit a3ea5bd

Please sign in to comment.