Kade-Engine/appveyor-macos.yml
2021-06-12 00:46:26 +02:00

44 lines
1.5 KiB
YAML

version: '{build}'
image: macos
environment:
global:
HAXELIB_ROOT: /Users/appveyor/haxelib
HAXE_INSTALLDIR: /Users/appveyor/haxe_bin
install:
- cd /Users/appveyor
- brew install neko
- brew install gnu-tar
- brew install wget
- wget "https://github.com/HaxeFoundation/haxe/releases/download/4.1.5/haxe-4.1.5-osx.tar.gz"
- mkdir $HAXE_INSTALLDIR
- tar -xf haxe-4.1.5-osx.tar.gz -C $HAXE_INSTALLDIR
- export PATH=$PATH:$HAXE_INSTALLDIR/haxe_20201231082044_5e33a78aa
- mkdir $HAXELIB_ROOT && haxelib setup $HAXELIB_ROOT
- haxelib install lime 7.9.0
- haxelib install openfl
- haxelib install flixel
- haxelib run lime setup flixel
- haxelib run lime setup
- haxelib install flixel-tools
- haxelib install flixel-addons
- haxelib install flixel-ui
- haxelib install hscript
- haxelib install newgrounds
- haxelib git faxe https://github.com/uhrobots/faxe
- haxelib git polymod https://github.com/larsiusprime/polymod.git
- haxelib git discord_rpc https://github.com/Aidan63/linc_discord-rpc
- haxelib install linc_luajit
- haxelib list
- cd /Users/appveyor/projects/kade-engine-macos
build_script:
- haxelib run lime build mac
after_build:
- hdiutil create /Users/appveyor/temp.dmg -ov -volname "KadeEngine-macOS" -fs HFS+ -srcfolder "/Users/appveyor/projects/kade-engine-macos/export/release/macos/bin"
- hdiutil convert /Users/appveyor/temp.dmg -format UDZO -o /Users/appveyor/KadeEngine-macOS.dmg
artifacts:
- path: "**/KadeEngine-macOS.dmg"
name: Kade Engine for macOS