mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-01 23:12:21 +00:00
* Decouple export path composition into a separate function * Fix typos, linting and text formatting * Improve cross platform compatibility of user home path handling * Fix export path for pir and dcf * Remove excessive iteration from fa integration test * Add investpy data to fix funds menu * Clean up logs dir before build on macOS * De-quarantine terminal package on launch on macOS * Add docstring * Update dcf test data * Remove recording new data every time pycoingecko tests run * Skip pycoingecko tests * Update deps to fix CI tests on main * Bump Pygments version to fix the CI Co-authored-by: piiq <piiq@tinag.ru> Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
33 lines
780 B
Bash
Executable File
Vendored
33 lines
780 B
Bash
Executable File
Vendored
#!/bin/bash
|
|
|
|
DISK_IMAGE_NAME="OpenBB Terminal"
|
|
|
|
# exit when any command fails
|
|
set -e
|
|
|
|
# Clean Up artifacts from previous builds
|
|
rm -rf build/terminal && rm -rf dist && rm -rf DMG
|
|
|
|
# Clean up local logging id
|
|
rm -rf openbb_terminal/logs
|
|
|
|
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/OpenBBTerminal DMG/"$DISK_IMAGE_NAME"/OpenBB
|
|
|
|
# Copy launcher and other artifacts to the DMG
|
|
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
|