diff --git a/.travis.yml b/.travis.yml index ad6cfb9..f9f4e7a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,6 +24,8 @@ matrix: - source venv/bin/activate - which pip - pip install six wheel nose + before_deploy: + - ./pkg/macOS/build_app.sh env: global: - PYTHONPATH="$TRAVIS_BUILD_DIR/src;$TRAVIS_BUILD_DIR/test" diff --git a/pkg/macOS/Info.plist b/pkg/macOS/Info.plist new file mode 100644 index 0000000..b811390 --- /dev/null +++ b/pkg/macOS/Info.plist @@ -0,0 +1,19 @@ + + + + + CFBundleNameFantasy Crescendo + CFBundleDisplayNameFantasy Crescendo + CFBundleIdentifiercom.HouraiTeahouse.FantasyCrescendoLauncher + CFBundlePackageTypeAPPL + CFBundleSignature???? + CFBundleVersion%%VERSION%% + CFBundleShortVersionString%%VERSION%% + CFBundleExecutable%%EXECUTABLE%% + CFBundleDevelopmentRegionen + CFBundleGetInfoStringCopyright © 2018 Hourai Teahouse + NSHumanReadableCopyrightCopyright © 2018 Hourai Teahouse + CFBundleInfoDictionaryVersion6.0 + NSHighResolutionCapable + + diff --git a/pkg/macOS/build_app.sh b/pkg/macOS/build_app.sh new file mode 100644 index 0000000..e49443a --- /dev/null +++ b/pkg/macOS/build_app.sh @@ -0,0 +1,21 @@ +# Build *.app +BUILDDIR="build" +APP="Fantasy_Crescendo" +EXE="dist/launcher" +APP_DIR="$BUILDDIR/$APP.app" +mkdir -p $APP_DIR/Contents +mkdir -p $APP_DIR/Contents/MacOS +mkdir -p $APP_DIR/Contents/Frameworks +mkdir -p $APP_DIR/Contents/Resources + +cp pkg/macOS/Info.plist $BUILDDIR/$APP.app/Contents + +APPEXE="$APP_DIR/Contents/MacOS/$APP" +cp $EXE $APPEXE + +# Build *.dmg file +git clone https://github.com/andreyvit/yoursway-create-dmg.git ./create-dmg +./create-dmg/create-dmg \ + --volname "Fantasy Crescendo Installer" \ + dist/fc_installer.dmg \ + $APP_DIR/