-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathcreate-macos-app.sh
executable file
·33 lines (24 loc) · 1.13 KB
/
create-macos-app.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
# Encore.app building+packing script, made by Emma/InvoxiPlayGames 2024
# Requires you to have run the build in build_macos
# Remove all existing artifacts
rm -rf out
mkdir out
# Copy the app template to the .app folder
cp -r Encore.app_template out/Encore.app
# Copy the game assets into the Resources folder
cp -r build_macos/Encore/Assets out/Encore.app/Contents/Resources
# Copy out the game executable and any used dynamic libraries
cp build_macos/Encore/Encore out/Encore.app/Contents/MacOS/Encore
cp build_macos/Encore/*.dylib out/Encore.app/Contents/MacOS
# Fix executable so dynamic libraries work from the executable path
install_name_tool -add_rpath @executable_path out/Encore.app/Contents/MacOS/Encore
# Delete the gitkeep file if it exists
rm out/Encore.app/Contents/MacOS/.gitkeep
# Copy out the Songs folder
cp -r build_macos/Encore/Songs out/Songs
# -- !! TEMPORARY INDEV HACK !! --
# not anymore, but keeping just in case
# cp build_macos/Encore/players.json out/players.json
# -- !! TEMPORARY INDEV HACK !! --
echo "Copy the Encore app and the Songs folder to a folder on your computer." > out/Copy_to_your_computer!.txt