mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-06 01:12:27 +00:00
Add macOS build assets
This commit is contained in:
29
build/pyinstaller/build4mac.sh
vendored
Executable file
29
build/pyinstaller/build4mac.sh
vendored
Executable 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
|
||||
19
build/pyinstaller/macOS_package_assets/Gamestonk Terminal/Gamestonk Terminal
vendored
Executable file
19
build/pyinstaller/macOS_package_assets/Gamestonk Terminal/Gamestonk Terminal
vendored
Executable 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
|
||||
1
build/pyinstaller/macOS_package_assets/README.TXT
vendored
Normal file
1
build/pyinstaller/macOS_package_assets/README.TXT
vendored
Normal file
@@ -0,0 +1 @@
|
||||
MOVE THE GAMESTONK TERMINAL FOLDER TO THE APPLICATIONS FOLDER
|
||||
Reference in New Issue
Block a user