Commit 3c5a2d77 authored by Matteo De Carlo's avatar Matteo De Carlo

Merge branch 'dev/osx-ci' into 'dev/common'

Create and upload osx.zip

See merge request TheExperienceArchitects/Marte/marte-engine!5
parents ba06a90b be05deae
......@@ -59,7 +59,10 @@ build_osx:
DARWIN: darwin15
EXTRA: osxcross_sdk=$DARWIN
before_script:
- apt-get update -qq && apt-get install -y -qq scons pkg-config yasm
- apt-get update -qq && apt-get install -y -qq scons pkg-config yasm zip
after_script:
- ./osxexport.sh ./bin
- rm ./bin/godot.osx.opt.64
# prototype deploy job
.deploy_base:
......
#!/usr/bin/env bash
###############################################################################
# Script to create the osx template for project export
###############################################################################
set -e
dest_folder=$1
local="$PWD"
workdir="./osx_export"
godot_path="$local"
mkdir $workdir
cd $workdir
cp -r $godot_path/misc/dist/osx_template.app ./
mkdir osx_template.app/Contents/MacOS
cp $godot_path/bin/godot.osx.opt.64 osx_template.app/Contents/MacOS/godot_osx_release.64
# cp $godot_path/bin/godot.osx.opt.debug.64 osx_template.app/Contents/MacOS/godot_osx_debug.64
chmod +x osx_template.app/Contents/MacOS/godot_osx*
zip -q -9 -r osx.zip osx_template.app
cd $local
# Lnad the result to the uploading folder
cp $workdir/osx.zip $dest_folder
exit 0
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment