Add macOS build assets

This commit is contained in:
Theodore Aptekarev
2022-03-28 20:04:11 +03:00
parent aa1d1caa1c
commit ee091d60db
3 changed files with 49 additions and 0 deletions

29
build/pyinstaller/build4mac.sh vendored Executable file
View File

@@ -0,0 +1,29 @@
#!/bin/bash
DISK_IMAGE_NAME="Gamestonk Terminal"
# exit when any command fails
set -e
# Clean Up artifacts from previous builds
rm -rf build/terminal && rm -rf dist && rm -rf DMG
pyinstaller build/pyinstaller/terminal.spec
# Create the folder that is used for packaging
mkdir DMG
# Copy relevant artifacts to the packaging folder
cp -r build/pyinstaller/macOS_package_assets/* DMG/
mv dist/GamestonkTerminal DMG/"$DISK_IMAGE_NAME"/Gamestonk
# Copy launcher and other artifacts to the
hdiutil create \
-volname "$DISK_IMAGE_NAME" \
-srcfolder DMG \
-ov \
-format UDZO \
"$DISK_IMAGE_NAME".dmg
# Clean Up artifacts from this build
rm -rf build/terminal && rm -rf dist && rm -rf DMG

View File

@@ -0,0 +1,19 @@
#!/bin/bash
clear
echo " _ _ _ "
echo " | | | (_) "
echo " | | ___ __ _ __| |_ _ __ __ _ "
echo " | | / _ \ / _\` |/ _\` | | '_ \ / _\` | "
echo " | |___| (_) | (_| | (_| | | | | | (_| |_ _ _ "
echo " |______\___/ \__,_|\__,_|_|_| |_|\__, (_|_|_)"
echo " __/ | "
echo " |___/ "
BOOTUP_MESSAGE="
The boot up process might take a while. Please be patient...
"
echo "$BOOTUP_MESSAGE"
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
"$SCRIPTDIR"/Gamestonk/GamestonkTerminal

View File

@@ -0,0 +1 @@
MOVE THE GAMESTONK TERMINAL FOLDER TO THE APPLICATIONS FOLDER