mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 21:12:16 +00:00
* Re-solve the dependencies for optimization extras * Remove unused reportlab helpers * Update install from source and troubleshooting docs * Fix typos found by cspell * Prevent po menu from launching when optimization toolkit not installed * Add optimization dependencies to default requirements.txt for the CI * Add optimization toolkit installation to the CI * Fix markdown linting * Update CI test dependency installation for matrix tests * Fix markdown linting * Update source installation docs * Clean up ToC in the main readme * Update the SDK documentation * Fix markdown linting after making readme sections linkable * Fix more markdown linting * Fix more markdown linting * Update secrets detection with exclusion rules * Bump detect-secrets configuration * Tune secret detector * Fix more markdown linting * Add optimization toolkit install to installer GH actions * Add optimization toolkit install to docker build * Fix typos * Add "all" extras setting to install torch and riskfolio * Move forecasting dependencies to pyproject.toml * Update CI build configs * Update documentation to feature the "all" extra * Lint markdown * Update docs to specify requirement of having a C compiler * Added log Id to codesigning steps in inteel Macos workflow * Changed disk for the m1 macos build * Changed disk for the m1 macos build * Changed disk for the intel macos build * taking out sigtool removal line * Remove dev version number from pyproject.toml * removing sigtool from all build steps * changes to m1 build and commenting test_report_economy * more m1 build changes * testing exit on conda setup * some more * changing shell to bash to setup conda * bash on lines * bash on all lines * small bash removals * intel fix and test_crypto int test * upgrading setupminiconda version * adding back in intel conda init and reset * intel removal of init * taking bash back out from m1 * removing old codesign lines * adding codesign specific binaries * ssl fix for all terminal * removing if installer * various ssl fixes across commands * fixing ssl mistake * integration test changes * Linting + remove comment * Update poetry.lock * Update requirements * Update the docs to mention that PO is not working on arm arch * Update deps to pin setuptools * Disable reports on pyinstaller packaged version * Update reports * small grammar change for forecast report message * Pin grpcio following introduced regression in 1.51.0 * Update docs to reflect changes in how optimization is installed Co-authored-by: Luqman Bello <lb@Luqmans-MacBook-Pro.local> Co-authored-by: James Simmons <simmonsj330@gmail.com> Co-authored-by: James Simmons <53658028+simmonsj330@users.noreply.github.com> Co-authored-by: James Maslek <jmaslek11@gmail.com> Co-authored-by: Chavithra <chavithra@gmail.com>
62 lines
1.6 KiB
Bash
Executable File
Vendored
62 lines
1.6 KiB
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
|
|
|
|
# Running build
|
|
pyinstaller build/pyinstaller/terminal.spec --clean
|
|
|
|
# Assign icons to the built folder and launcher
|
|
osascript build/pyinstaller/setup_icons.applescript
|
|
|
|
# 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
|
|
|
|
# Create a DMG with create-dmg
|
|
#
|
|
# NOTE:
|
|
# Code signing and notarization requires adding the following:
|
|
#
|
|
# --codesign "Common name of the Developer certificate"
|
|
# --format UDIF
|
|
# --notarize "Notarization identity " see:
|
|
# https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/customizing_the_notarization_workflow
|
|
|
|
if ! command -v create-dmg &> /dev/null
|
|
then
|
|
echo "create could not be found"
|
|
echo "install create-dmg from brew or github"
|
|
exit
|
|
fi
|
|
|
|
create-dmg \
|
|
--volname "OpenBB Terminal" \
|
|
--volicon "images/dmg_volume.icns" \
|
|
--background "images/openbb_dmg_background.png" \
|
|
--icon "OpenBB Terminal" 190 250 \
|
|
--window-pos 190 120 \
|
|
--window-size 800 400 \
|
|
--icon-size 100 \
|
|
--text-size 14 \
|
|
--app-drop-link 600 250 \
|
|
--eula LICENSE \
|
|
--format UDZO \
|
|
--no-internet-enable \
|
|
"OpenBB Terminal".dmg DMG
|
|
|
|
|
|
# Clean Up artifacts from this build
|
|
rm -rf build/terminal && rm -rf dist && rm -rf DMG
|