summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrique Joaquim <henriquecjoaquim@gmail.com>2024-04-18 16:46:10 +0100
committerGitHub <noreply@github.com>2024-04-18 15:46:10 +0000
commitf4db561780b491f7727e2ad7686b0d0b11be4577 (patch)
tree9346632130bdfa8725fe2da9f76a55339bab0a29
parent510b9389c9e8c06f4603b8b5dbb460842e0df84c (diff)
remove terminal related artifacts from build folder (#6307)
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt> Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
-rw-r--r--build/README.md69
-rw-r--r--build/docker/api.dockerfile33
-rw-r--r--build/docker/build.sh26
-rw-r--r--build/docker/compose.env2
-rw-r--r--build/docker/docker-compose.x11.yaml6
-rw-r--r--build/docker/docker-compose.yaml12
-rw-r--r--build/docker/openbb.dockerfile75
-rw-r--r--build/nsis/assets/Installer_horizontal.bmpbin57514 -> 0 bytes
-rw-r--r--build/nsis/assets/Installer_horizontal2.pngbin18794 -> 0 bytes
-rw-r--r--build/nsis/assets/Installer_horizontall.pngbin19275 -> 0 bytes
-rw-r--r--build/nsis/assets/Installer_vertical#2.pngbin98181 -> 0 bytes
-rw-r--r--build/nsis/assets/Installer_vertical.pngbin99496 -> 0 bytes
-rw-r--r--build/nsis/assets/Installer_vertical2.bmpbin357254 -> 0 bytes
-rw-r--r--build/nsis/assets/Splashscreen #2.pngbin1510901 -> 0 bytes
-rw-r--r--build/nsis/assets/Splashscreen.pngbin1572407 -> 0 bytes
-rw-r--r--build/nsis/assets/openbb_icon.icobin19566 -> 0 bytes
-rw-r--r--build/nsis/license.txt3
-rw-r--r--build/nsis/setup.nsi277
-rw-r--r--build/pyinstaller/.env26
-rwxr-xr-xbuild/pyinstaller/build4mac.sh27
-rw-r--r--build/pyinstaller/entitlements.plist18
-rw-r--r--build/pyinstaller/hooks/hook-debugpy.py8
-rw-r--r--build/pyinstaller/hooks/hook-pytrends.py3
-rw-r--r--build/pyinstaller/hooks/hook-rich.py3
-rw-r--r--build/pyinstaller/hooks/hook-streamlit.py3
-rw-r--r--build/pyinstaller/hooks/hook-whisper.py35
-rw-r--r--build/pyinstaller/hooks/hook-xgboost.py3
-rw-r--r--build/pyinstaller/hooks/pyi_rth_inspect.py39
-rw-r--r--build/pyinstaller/macOS/.gitignore1
-rwxr-xr-xbuild/pyinstaller/macOS/build-macos.sh216
-rw-r--r--build/pyinstaller/macOS/darwin/Distribution36
-rw-r--r--build/pyinstaller/macOS/darwin/Resources/LICENSE.txt21
-rw-r--r--build/pyinstaller/macOS/darwin/Resources/background-light.pngbin239545 -> 0 bytes
-rw-r--r--build/pyinstaller/macOS/darwin/Resources/background.pngbin885099 -> 0 bytes
-rw-r--r--build/pyinstaller/macOS/darwin/Resources/banner.pngbin14337 -> 0 bytes
-rw-r--r--build/pyinstaller/macOS/darwin/Resources/conclusion.html35
-rw-r--r--build/pyinstaller/macOS/darwin/Resources/uninstall.sh73
-rw-r--r--build/pyinstaller/macOS/darwin/Resources/welcome.html14
-rw-r--r--build/pyinstaller/macOS/darwin/scripts/postinstall3
-rwxr-xr-xbuild/pyinstaller/macOS_package_assets/OpenBB Terminal/OpenBB Terminal31
-rw-r--r--build/pyinstaller/macOS_package_assets/README.TXT1
-rw-r--r--build/pyinstaller/setup_icons.applescript20
-rw-r--r--build/pyinstaller/setup_icons_post.applescript20
-rw-r--r--build/pyinstaller/terminal.spec217
-rw-r--r--build/pyinstaller/version.rc42
-rwxr-xr-xbuild/pypi/openbb_terminal/build.sh9
-rwxr-xr-xbuild/pypi/openbb_terminal/test_publish.sh9
47 files changed, 0 insertions, 1416 deletions
diff --git a/build/README.md b/build/README.md
deleted file mode 100644
index 0d9dcc1b1b2..00000000000
--- a/build/README.md
+++ /dev/null
@@ -1,69 +0,0 @@
-# Building Installers
-This guide serves to assist developers construct OpenBB Terminal installers on macOS and Windows.
-
-## Overview
-Building an installer takes source code as input and produces deployable software as an output. For MacOS the output is a DMG while for Windows it is an EXE. This process utilizes two major modules: Pyinstaller & Create-dmg. Windows additionally recruits the service of NSIS. There are two ways to build an installer: locally or through Github.
-
-## Local
-In this section we detail the steps necessary to construct an installer locally on a Windows machine and Mac machine. These steps can be performed on either one of these operating systems so long as they have the OpenBBTerminal repository codebase. This process assumes you already have a working conda environment. Building locally usually takes anywhere from 10-20 minutes.
-
-### MacOS Steps
-1. `brew install create-dmg`
-
- This installs create-dmg and its dependencies onto your system through brew.
-
-1. `poetry install -E installer`
-
- This install pyinstaller and its dependencies onto your environment.
-
-3. `build/pyinstaller/build4mac.sh`
-
- This runs a shell script that auto-builds the DMG and stores it on the root of your repository.
-
-4. (Optional) `/Full/Path/To/OpenBB\ Terminal/.OpenBB/OpenBBTerminal /Full/Path/To/OpenBBTerminal/OpenBBTerminal/scripts/*.openbb -t`
-
- This runs integration tests on your newly created installer.
-
-### Windows Steps
-1. `poetry install -E installer`
-
- This install pyinstaller and its dependencies onto your environment.
-
-2. `pyinstaller build/pyinstaller/terminal.spec`
-
- This runs a shell script that auto-builds the DMG and stores it on the root of your repository.
-
-3. `cp -r .\dist\OpenBBTerminal\ .\build\nsis\app\`
-
- This copies over the contents of the newly dist folder into the app folder so that NSIS can utilize them.
-
-4. Compile NSIS Scripts
-
- Open *NSIS*, click on the "Compile NSI scripts", and then drag the `setup.nsi` file in build\nsis to the window. This creates the EXE installer.
-
-4. (Optional) `Full\Path\To\OpenBBTerminal.exe Full\Path\To\OpenBBTerminal\OpenBBTerminal\scripts -t`
-
- This runs integration tests on your newly created installer.
-
-
-## Github
-In order to utilize the automated build workflow on the OpenBBTerminal repo, the branch in which you would like to build an installer from must already be a branch on the repo. You can also utilize the automated build workflow on a PR that is from a branch on the repo. You cannot run an automated build on a forked branch or even a PR from a forked branch.
-
-If you are using this method to create an installer, there is a limitation where only one build automation can occur at a time per workflow. For example if there is already an installer being created on the ‘Intel MacOS Build’ workflow, any subsequent requests for building will be queued. Additionally, the ‘Windows10 Build’ workflow runs relatively slowly because of the size of the EC2 instance it is currently on. As such, if you are interested in a quick build, then I would suggest building locally. Furthermore, building an installer this way also automatically runs integration tests on the installer.
-
-If you run into a circumstance where a requested build is queued for a long period of time, this might mean that the EC2 instance is not connected to github. If something like this arises, please create an issue.
-
-### Steps
-1. Navigate to `Actions`
-2. Navigate to your desired build system workflow
-3. Choose your desired branch & click Run Workflow
-4. Download your installer artifact
-
- Each build system produces a single installer which can be subsequently downloaded.
-
-5. Investigate the success/failure of your Build
-
- You can click on the build to delve into the steps it takes to construct an installer. This is where you can investigate the success of integration tests, identify if/where the build failed, etc.
-
-
-Note: Intel Mac installers are signed and notarized. During this step you can identify if notarization has succeeded or failed and if all of the binaries have been signed in correctly.
diff --git a/build/docker/api.dockerfile b/build/docker/api.dockerfile
deleted file mode 100644
index 430b8511d5b..00000000000
--- a/build/docker/api.dockerfile
+++ /dev/null
@@ -1,33 +0,0 @@
-# ---- Base Python ----
-FROM python:3.10-slim-buster AS base
-
-# set work directory
-WORKDIR /openbb
-
-# set environment variables
-ENV PYTHONDONTWRITEBYTECODE 1
-ENV PYTHONUNBUFFERED 1
-
-# install dependencies
-RUN apt-get update \
- && apt-get install -y --no-install-recommends build-essential openssh-client \
- && apt-get clean \
- && rm -rf /var/lib/apt/lists/*
-
-# ---- Copy Files/Build ----
-FROM base AS builder
-
-WORKDIR /openbb
-
-COPY ./openbb_platform ./openbb_platform
-
-# Install the SDK
-RUN pip install /openbb/openbb_platform
-
-# ---- Copy Files ----
-FROM base
-
-COPY --from=builder /usr/local /usr/local
-
-# Specify the command to run
-CMD ["uvicorn", "openbb_core.api.rest_api:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
diff --git a/build/docker/build.sh b/build/docker/build.sh
deleted file mode 100644
index a61148f313b..00000000000
--- a/build/docker/build.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-
-echo "Building docker release"
-
-if [ -z "$OPENBBTERMINAL_DOCKER_RELEASE_VERSION" ]
-then
- read -p "Version number (X.Y.Z format): " OPENBBTERMINAL_DOCKER_RELEASE_VERSION
-fi
-
-# SET DEFAULT PARAMETERS IF EMPTY
-OPENBBTERMINAL_DOCKER_REGISTRY="${OPENBBTERMINAL_DOCKER_REGISTRY:-ghcr.io}"
-OPENBBTERMINAL_DOCKER_GITHUB_REPOSITORY="${OPENBBTERMINAL_DOCKER_GITHUB_REPOSITORY:-openbb-finance/openbbterminal}"
-OPENBBTERMINAL_DOCKER_RELEASE_VERSION="${OPENBBTERMINAL_DOCKER_RELEASE_VERSION:-0.0.0}"
-# SET IMAGES NAMES
-OPENBBTERMINAL_DOCKER_POETRY_IMAGE=${OPENBBTERMINAL_DOCKER_REGISTRY,,}/${OPENBBTERMINAL_DOCKER_GITHUB_REPOSITORY,,}/openbb:${OPENBBTERMINAL_DOCKER_RELEASE_VERSION,,}
-OPENBBTERMINAL_DOCKER_POETRY_IMAGE_LATEST=${OPENBBTERMINAL_DOCKER_REGISTRY,,}/${OPENBBTERMINAL_DOCKER_GITHUB_REPOSITORY,,}/openbb:latest
-
-# DISPLAY PARAMETERS
-echo "OPENBBTERMINAL_DOCKER_REGISTRY = $OPENBBTERMINAL_DOCKER_REGISTRY"
-echo "OPENBBTERMINAL_DOCKER_GITHUB_REPOSITORY = $OPENBBTERMINAL_DOCKER_GITHUB_REPOSITORY"
-echo "OPENBBTERMINAL_DOCKER_RELEASE_VERSION = $OPENBBTERMINAL_DOCKER_RELEASE_VERSION"
-# DISPLAY IMAGES NAMES
-echo "OPENBBTERMINAL_DOCKER_POETRY_IMAGE = $OPENBBTERMINAL_DOCKER_POETRY_IMAGE"
-
-# Docker command to build image
-docker build -f build/docker/openbb.dockerfile -t "${OPENBBTERMINAL_DOCKER_POETRY_IMAGE}" -t "${OPENBBTERMINAL_DOCKER_POETRY_IMAGE_LATEST}" . \ No newline at end of file
diff --git a/build/docker/compose.env b/build/docker/compose.env
deleted file mode 100644
index bc8a9bcb697..00000000000
--- a/build/docker/compose.env
+++ /dev/null
@@ -1,2 +0,0 @@
-OPENBBTERMINAL_DOCKER_REGISTRY="ghcr.io"
-OPENBBTERMINAL_DOCKER_RELEASE_VERSION="3.2.5"
diff --git a/build/docker/docker-compose.x11.yaml b/build/docker/docker-compose.x11.yaml
deleted file mode 100644
index a10f5594d5a..00000000000
--- a/build/docker/docker-compose.x11.yaml
+++ /dev/null
@@ -1,6 +0,0 @@
-services:
- openbb:
- environment:
- DISPLAY: ${DISPLAY}
- volumes:
- - /tmp/.X11-unix:/tmp/.X11-unix
diff --git a/build/docker/docker-compose.yaml b/build/docker/docker-compose.yaml
deleted file mode 100644
index c4193a96b7c..00000000000
--- a/build/docker/docker-compose.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
-version: '3.8'
-services:
- openbb:
- environment:
- DISPLAY: host.docker.internal:0.0
- volumes:
- - ~/OpenBBUserData:/home/python/OpenBBUserData
- - ~/.openbb_terminal:/home/python/.openbb_terminal
- platform: linux/amd64
- image: ghcr.io/openbb-finance/openbbterminal/openbb:latest
- stdin_open: true # docker run -i
- tty: true # docker run -t
diff --git a/build/docker/openbb.dockerfile b/build/docker/openbb.dockerfile
deleted file mode 100644
index 81731b5197a..00000000000
--- a/build/docker/openbb.dockerfile
+++ /dev/null
@@ -1,75 +0,0 @@
-# SETUP PYTHON IMAGE
-FROM --platform=linux/amd64 python:3.10-slim-bullseye as python
-
-LABEL org.opencontainers.image.source https://github.com/OpenBB-finance/OpenBBTerminal
-
-# SETUP DEBIAN IMAGE
-FROM python as debian
-
-RUN apt-get update
-
-RUN apt-get -y install --no-install-recommends \
- gcc \
- g++ \
- make
-
-RUN apt-get -y install --no-install-recommends \
- git
-
-RUN apt-get -y install --no-install-recommends \
- curl \
- wget
-
-RUN apt-get -y install --no-install-recommends \
- libsm6 \
- libxt6 \
- libgl1-mesa-glx \
- libpng16-16 \
- libwebkit2gtk-4.0-dev \
- build-essential \
- libssl-dev \
- librsvg2-dev \
- ffmpeg \
- python3-tk
-
-RUN apt-get clean
-
-RUN useradd --create-home --shell /bin/bash python
-
-USER python
-WORKDIR /home/python
-
-# SETUP POETRY IMAGE
-FROM debian as poetry
-
-ENV PATH="/home/python/.local/bin:${PATH}"
-
-RUN pip install --upgrade pip wheel
-RUN pip install poetry==1.4.0
-
-# SETUP OPENBB IMAGE
-FROM poetry as repository
-
-COPY --chown=python:python pyproject.toml poetry.lock terminal.py ./
-
-RUN mkdir openbb_terminal
-COPY --chown=python:python openbb_terminal openbb_terminal
-
-RUN mkdir -p website/content/sdk
-COPY --chown=python:python ./website/content/sdk/installation.md ./website/content/sdk
-
-RUN mkdir OpenBBUserData
-RUN chown python:python OpenBBUserData
-
-RUN mkdir .openbb_terminal
-RUN chown python:python .openbb_terminal
-
-# SETUP OPENBB IMAGE
-FROM repository as dependencies
-
-RUN poetry install --no-root --no-dev --extras optimization --extras forecast
-
-# SETUP OPENBB IMAGE
-FROM dependencies as openbb
-
-CMD ["poetry", "run", "python", "terminal.py"]
diff --git a/build/nsis/assets/Installer_horizontal.bmp b/build/nsis/assets/Installer_horizontal.bmp
deleted file mode 100644
index 7de27025699..00000000000
--- a/build/nsis/assets/Installer_horizontal.bmp
+++ /dev/null
Binary files differ
diff --git a/build/nsis/assets/Installer_horizontal2.png b/build/nsis/assets/Installer_horizontal2.png
deleted file mode 100644
index 2261c710255..00000000000
--- a/build/nsis/assets/Installer_horizontal2.png
+++ /dev/null
Binary files differ
diff --git a/build/nsis/assets/Installer_horizontall.png b/build/nsis/assets/Installer_horizontall.png
deleted file mode 100644
index bddba4ab947..00000000000
--- a/build/nsis/assets/Installer_horizontall.png
+++ /dev/null
Binary files differ
diff --git a/build/nsis/assets/Installer_vertical#2.png b/build/nsis/assets/Installer_vertical#2.png
deleted file mode 100644
index f722988ffa2..00000000000
--- a/build/nsis/assets/Installer_vertical#2.png
+++ /dev/null
Binary files differ
diff --git a/build/nsis/assets/Installer_vertical.png b/build/nsis/assets/Installer_vertical.png
deleted file mode 100644
index 078721b00d1..00000000000
--- a/build/nsis/assets/Installer_vertical.png
+++ /dev/null
Binary files differ
diff --git a/build/nsis/assets/Installer_vertical2.bmp b/build/nsis/assets/Installer_vertical2.bmp
deleted file mode 100644
index 54f9b618845..00000000000
--- a/build/nsis/assets/Installer_vertical2.bmp
+++ /dev/null
Binary files differ
diff --git a/build/nsis/assets/Splashscreen #2.png b/build/nsis/assets/Splashscreen #2.png
deleted file mode 100644
index 0f95c376fb2..00000000000
--- a/build/nsis/assets/Splashscreen #2.png
+++ /dev/null
Binary files differ
diff --git a/build/nsis/assets/Splashscreen.png b/build/nsis/assets/Splashscreen.png
deleted file mode 100644
index a0c18bd195f..00000000000
--- a/build/nsis/assets/Splashscreen.png
+++ /dev/null
Binary files differ
diff --git a/build/nsis/assets/openbb_icon.ico b/build/nsis/assets/openbb_icon.ico
deleted file mode 100644
index ec1a7d484f4..00000000000
--- a/build/nsis/assets/openbb_icon.ico
+++ /dev/null
Binary files differ
diff --git a/build/nsis/license.txt b/build/nsis/license.txt
deleted file mode 100644
index 5ef8d0820f7..00000000000
--- a/build/nsis/license.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-The information provided by OpenBB Terminal ("application") is for general informational purposes only. All information on the application is provided in good faith, however we make no representation or warranty of any kind, express or implied, regarding the accuracy, adequacy, validity, reliability, availability or completeness of any information on the application.
-
-Under no circumstance shall we have any liability to you for any loss or damage of any kind incurred as a result of the use of the application or reliance on any information provided on the application. Your use of the application and your reliance on any information on it is solely at your own risk. \ No newline at end of file
diff --git a/build/nsis/setup.nsi b/build/nsis/setup.nsi
deleted file mode 100644
index c3f23890cd6..00000000000
--- a/build/nsis/setup.nsi
+++ /dev/null
@@ -1,277 +0,0 @@
-;--------------------------------
-; Includes
-
- !include "MUI2.nsh"
- !include "logiclib.nsh"
-
-
-;--------------------------------
-; Custom defines
- !define NAME "OpenBB Terminal"
- !define COMPANY "OpenBB"
- !define APPFILE "OpenBBTerminal.exe"
- !define VERSION "3.2.5"
- !define SLUG "${NAME} v${VERSION}"
-
-;--------------------------------
-; Info for Installer.exe
- VIProductVersion 3.2.5.0
- VIAddVersionKey ProductName "OpenBB Terminal"
- VIAddVersionKey Comments "An installer for OpenBB Terminal. For additional details, visit OpenBB.co"
- VIAddVersionKey CompanyName OpenBB.co
- VIAddVersionKey FileDescription "OpenBB Terminal Program"
- VIAddVersionKey FileVersion 3.2.5.0
- VIAddVersionKey ProductVersion 3.2.5.0
- VIAddVersionKey InternalName "OpenBB Terminal"
-
-;--------------------------------
-; General
- Name "${NAME}"
- OutFile "${NAME} Setup.exe"
- InstallDir $PROFILE\OpenBB
- RequestExecutionLevel user
-
-;--------------------------------
-; UI
-
- !define MUI_ICON "assets\openbb_icon.ico"
- !define MUI_UNICON "assets\openbb_icon.ico"
- !define MUI_HEADERIMAGE
- !define MUI_WELCOMEFINISHPAGE_BITMAP "assets\installer_vertical2.bmp"
- !define MUI_HEADERIMAGE_BITMAP "assets\installer_horizontal.bmp"
- !define MUI_ABORTWARNING
- !define MUI_WELCOMEPAGE_TITLE "${SLUG} Setup"
- !define UninstId "OpenBBTerminal" ; You might want to use a GUID here
- !define MUI_FINISHPAGE_RUN
- !define MUI_FINISHPAGE_RUN_NOTCHECKED
- !define MUI_FINISHPAGE_RUN_TEXT "Start OpenBB Terminal"
- !define MUI_FINISHPAGE_RUN_FUNCTION "StartOpenBB"
-
-;--------------------------------
-; Pages
-
- ; Installer pages
- !insertmacro MUI_PAGE_WELCOME
- !insertmacro MUI_PAGE_LICENSE "license.txt"
-; !insertmacro MUI_PAGE_COMPONENTS
- !insertmacro MUI_PAGE_DIRECTORY
- !insertmacro MUI_PAGE_INSTFILES
- !insertmacro MUI_PAGE_FINISH
-
- ; Uninstaller pages
- !insertmacro MUI_UNPAGE_CONFIRM
- !insertmacro MUI_UNPAGE_INSTFILES
-
- ; Set UI language
- !insertmacro MUI_LANGUAGE "English"
-
-
- Var /GLOBAL installerPath
-
-
-
-
-
-; StrContains
-; This function does a case sensitive searches for an occurrence of a substring in a string.
-; It returns the substring if it is found.
-; Otherwise it returns null("").
-; Written by kenglish_hi
-; Adapted from StrReplace written by dandaman32
-
-
-Var STR_HAYSTACK
-Var STR_NEEDLE
-Var STR_CONTAINS_VAR_1
-Var STR_CONTAINS_VAR_2
-Var STR_CONTAINS_VAR_3
-Var STR_CONTAINS_VAR_4
-Var STR_RETURN_VAR
-
-
-Function StartOpenBB
- Exec "$InstDir\OpenBBTerminal.exe"
-FunctionEnd
-
-
-Function StrContains
- Exch $STR_NEEDLE
- Exch 1
- Exch $STR_HAYSTACK
- ; Uncomment to debug
- ;MessageBox MB_OK 'STR_NEEDLE = $STR_NEEDLE STR_HAYSTACK = $STR_HAYSTACK '
- StrCpy $STR_RETURN_VAR ""
- StrCpy $STR_CONTAINS_VAR_1 -1
- StrLen $STR_CONTAINS_VAR_2 $STR_NEEDLE
- StrLen $STR_CONTAINS_VAR_4 $STR_HAYSTACK
- loop:
- IntOp $STR_CONTAINS_VAR_1 $STR_CONTAINS_VAR_1 + 1
- StrCpy $STR_CONTAINS_VAR_3 $STR_HAYSTACK $STR_CONTAINS_VAR_2 $STR_CONTAINS_VAR_1
- StrCmp $STR_CONTAINS_VAR_3 $STR_NEEDLE found
- StrCmp $STR_CONTAINS_VAR_1 $STR_CONTAINS_VAR_4 done
- Goto loop
- found:
- StrCpy $STR_RETURN_VAR $STR_NEEDLE
- Goto done
- done:
- Pop $STR_NEEDLE ;Prevent "invalid opcode" errors and keep the
- Exch $STR_RETURN_VAR
-FunctionEnd
-
-!macro _StrContainsConstructor OUT NEEDLE HAYSTACK
- Push `${HAYSTACK}`
- Push `${NEEDLE}`
- Call StrContains
- Pop `${OUT}`
-!macroend
-
-!define StrContains '!insertmacro "_StrContainsConstructor"'
-
-
-;-------------------------------
-; Uninstall Previous Version if exists
-
-!macro UninstallExisting exitcode uninstcommand
-Push `${uninstcommand}`
-Call UninstallExisting
-Pop ${exitcode}
-!macroend
-Function UninstallExisting
-Exch $1 ; uninstcommand
-Push $2 ; Uninstaller
-Push $3 ; Len
-StrCpy $3 ""
-StrCpy $2 $1 1
-StrCmp $2 '"' qloop sloop
-sloop:
- StrCpy $2 $1 1 $3
- IntOp $3 $3 + 1
- StrCmp $2 "" +2
- StrCmp $2 ' ' 0 sloop
- IntOp $3 $3 - 1
- Goto run
-qloop:
- StrCmp $3 "" 0 +2
- StrCpy $1 $1 "" 1 ; Remove initial quote
- IntOp $3 $3 + 1
- StrCpy $2 $1 1 $3
- StrCmp $2 "" +2
- StrCmp $2 '"' 0 qloop
-run:
- StrCpy $2 $1 $3 ; Path to uninstaller
- StrCpy $1 161 ; ERROR_BAD_PATHNAME
- GetFullPathName $3 "$2\.." ; $InstDir
- IfFileExists "$2" 0 +4
- ExecWait '"$2" /S _?=$3' $1 ; This assumes the existing uninstaller is a NSIS uninstaller, other uninstallers don't support /S nor _?=
- IntCmp $1 0 "" +2 +2 ; Don't delete the installer if it was aborted
- Delete "$2" ; Delete the uninstaller
- RMDir "$3" ; Try to delete $InstDir
- RMDir "$3\.." ; (Optional) Try to delete the parent of $InstDir
-Pop $3
-Pop $2
-Exch $1 ; exitcode
-FunctionEnd
-
-
-Function .onInit
-ReadRegStr $0 HKCU "Software\Software\Microsoft\Windows\CurrentVersion\Uninstall\${UninstId}" "UninstallString"
-${If} $0 != ""
-${AndIf} ${Cmd} `MessageBox MB_YESNO|MB_ICONQUESTION "It is highly recommended to uninstall the previous version of OpenBB Terminal - Please click Yes to proceed (Note - You will not lose your custom settings) - Or you can uninstall manually. " /SD IDYES IDYES`
- !insertmacro UninstallExisting $0 $0
- ${If} $0 <> 0
- MessageBox MB_YESNO|MB_ICONSTOP "Failed to uninstall, continue anyway?" /SD IDYES IDYES +2
- Abort
- ${EndIf}
-${EndIf}
-FunctionEnd
-
-;--------------------------------
-; Section - Install App
-
- Section "-hidden app"
- SectionIn RO
- ${StrContains} $0 "\OpenBB" "$INSTDIR"
- ; Making sure here if user manually removes \openbb from their path that it still installs there
- ; so we dont have issues with uninstaller later.
- StrCmp $0 "" notfound
- ; MessageBox MB_OK 'Found string $0 $INSTDIR'
- SetOutPath "$INSTDIR"
- Goto done
- notfound:
- ; MessageBox MB_OK "$INSTDIR is 'bla'"
- SetOutPath "$INSTDIR\OpenBB"
- StrCpy $InstDir "$INSTDIR\OpenBB"
- ; MessageBox MB_OK 'Did not find string "$INSTDIR\OpenBB" "$installerPath"'
- done:
-
- File /r "app\*.*"
- WriteRegStr HKCU "Software\${NAME}" "" $INSTDIR
- WriteUninstaller "$INSTDIR\Uninstall.exe"
- WriteRegStr HKCU "Software\Software\Microsoft\Windows\CurrentVersion\Uninstall\${UninstId}" "OpenBBTerminal" "OpenBB"
- WriteRegStr HKCU "Software\Software\Microsoft\Windows\CurrentVersion\Uninstall\${UninstId}" "UninstallString" '"$InstDir\Uninstall.exe"'
- WriteRegStr HKCU "Software\Software\Microsoft\Windows\CurrentVersion\Uninstall\${UninstId}" "QuietUninstallString" '"$InstDir\Uninstall.exe" /S'
- SectionEnd
-
-
-;--------------------------------
-; Section - Shortcut
-
- Section "Desktop Shortcut" DeskShort
- CreateShortCut "$DESKTOP\${NAME}.lnk" "$INSTDIR\${APPFILE}"
- CreateDirectory '$SMPROGRAMS\${Company}\${NAME}'
- CreateShortCut '$SMPROGRAMS\${Company}\${NAME}\${NAME}.lnk' '$INSTDIR\${APPFILE}' "" '$INSTDIR\${APPFILE}' 0
- CreateShortCut '$SMPROGRAMS\${Company}\${NAME}\Uninstall ${NAME}.lnk' '$INSTDIR\Uninstall.exe' "" '$INSTDIR\Uninstall.exe' 0
- SectionEnd
-
-
-;--------------------------------
-; Remove empty parent directories
-
- Function un.RMDirUP
- !define RMDirUP '!insertmacro RMDirUPCall'
-
- !macro RMDirUPCall _PATH
- push '${_PATH}'
- Call un.RMDirUP
- !macroend
-
- ; $0 - current folder
- ClearErrors
-
- Exch $0
- ;DetailPrint "ASDF - $0\.."
- RMDir "$0\.."
-
- IfErrors Skip
- ${RMDirUP} "$0\.."
- Skip:
-
- Pop $0
-
- FunctionEnd
-
-;--------------------------------
-; Section - Uninstaller
-
-Section "Uninstall"
-
- ;Delete Shortcut
- Delete "$DESKTOP\${NAME}.lnk"
-
- ;Delete Directory
- Delete '$SMPROGRAMS\${Company}\${NAME}'
-
- ;Delete Reg Key
- DeleteRegKey HKCU "Software\Software\Microsoft\Windows\CurrentVersion\Uninstall\${UninstId}"
-
- ;Delete Uninstall
- Delete "$INSTDIR\Uninstall.exe"
-
-
- ;Delete Folder
- RMDir /r "$INSTDIR"
- ${RMDirUP} "$INSTDIR"
-
- DeleteRegKey /ifempty HKCU "Software\${NAME}"
-
-SectionEnd
diff --git a/build/pyinstaller/.env b/build/pyinstaller/.env
deleted file mode 100644
index 58e3640f467..00000000000
--- a/build/pyinstaller/.env
+++ /dev/null
@@ -1,26 +0,0 @@
-OPENBB_LOGGING_APP_NAME=gst_packaged
-OPENBB_LOGGING_COMMIT_HASH=sha:a7c3d29
-OPENBB_ENABLE_PREDICT=false
-OPENBB_ENABLE_CHECK_API=true
-OPENBB_ENABLE_THOUGHTS_DAY=false
-OPENBB_REMEMBER_CONTEXTS=true
-OPENBB_USE_FLAIR=:openbb
-OPENBB_USE_WATERMARK=true
-OPENBB_USE_CMD_LOCATION_FIGURE=true
-OPENBB_USE_PROMPT_TOOLKIT=true
-OPENBB_USE_COLOR=true
-OPENBB_USE_ION=true
-OPENBB_USE_PLOT_AUTOSCALING=false
-OPENBB_ENABLE_RICH=true
-OPENBB_ENABLE_RICH_PANEL=true
-OPENBB_MPLSTYLE=dark
-OPENBB_MPFSTYLE=dark
-OPENBB_RICHSTYLE=dark
-OPENBB_DEBUG_MODE=false
-OPENBB_USE_TABULATE_DF=true
-OPENBB_USE_INTERACTIVE_DF=true
-OPENBB_USE_CLEAR_AFTER_CMD=false
-OPENBB_USE_DATETIME=true
-OPENBB_OPEN_REPORT_AS_HTML=true
-OPENBB_ENABLE_QUICK_EXIT=false
-OPENBB_ENABLE_EXIT_AUTO_HELP=false
diff --git a/build/pyinstaller/build4mac.sh b/build/pyinstaller/build4mac.sh
deleted file mode 100755
index 5f6758be10f..00000000000
--- a/build/pyinstaller/build4mac.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-
-DISK_IMAGE_NAME="OpenBB Terminal"
-SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
-BUNDLER_PATH="$SCRIPTPATH/macOS/build-macos.sh"
-
-# 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
diff --git a/build/pyinstaller/entitlements.plist b/build/pyinstaller/entitlements.plist
deleted file mode 100644
index 1d765f1a827..00000000000
--- a/build/pyinstaller/entitlements.plist
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>com.apple.security.cs.disable-library-validation</key>
- <true/>
- <key>com.apple.security.cs.allow-dyld-environment-variables</key>
- <true/>
- <key>com.apple.security.cs.allow-jit</key>
- <true/>
- <key>com.apple.security.cs.allow-unsigned-executable-memory</key>
- <true/>
- <key>com.apple.security.cs.disable-executable-page-protection</key>
- <true/>
- <key>com.apple.security.cs.debugger</key>
- <true/>
-</dict>
-</plist>
diff --git a/build/pyinstaller/hooks/hook-debugpy.py b/build/pyinstaller/hooks/hook-debugpy.py
deleted file mode 100644
index 42438ae0300..00000000000
--- a/build/pyinstaller/hooks/hook-debugpy.py
+++ /dev/null
@@ -1,8 +0,0 @@
-import os
-
-# This environment variable suppresses the warning:
-# 0.00s - Debugger warning: The os.path.realpath.__code__.co_filename (posixpath.py)
-# 0.00s - is not absolute, which may make the debugger miss breakpoints.
-# 0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
-
-os.environ["PYDEVD_DISABLE_FILE_VALIDATION"] = "1"
diff --git a/build/pyinstaller/hooks/hook-pytrends.py b/build/pyinstaller/hooks/hook-pytrends.py
deleted file mode 100644
index 7209e9b024a..00000000000
--- a/build/pyinstaller/hooks/hook-pytrends.py
+++ /dev/null
@@ -1,3 +0,0 @@
-from PyInstaller.utils.hooks import collect_all
-
-datas, binaries, hiddenimports = collect_all("pytrends")
diff --git a/build/pyinstaller/hooks/hook-rich.py b/build/pyinstaller/hooks/hook-rich.py
deleted file mode 100644
index 392b324ac0f..00000000000
--- a/build/pyinstaller/hooks/hook-rich.py
+++ /dev/null
@@ -1,3 +0,0 @@
-from PyInstaller.utils.hooks import collect_data_files, copy_metadata
-
-datas = copy_metadata("rich") + collect_data_files("rich")
diff --git a/build/pyinstaller/hooks/hook-streamlit.py b/build/pyinstaller/hooks/hook-streamlit.py
deleted file mode 100644
index 05080f9a1fe..00000000000
--- a/build/pyinstaller/hooks/hook-streamlit.py
+++ /dev/null
@@ -1,3 +0,0 @@
-from PyInstaller.utils.hooks import copy_metadata
-
-datas = copy_metadata("streamlit")
diff --git a/build/pyinstaller/hooks/hook-whisper.py b/build/pyinstaller/hooks/hook-whisper.py
deleted file mode 100644
index 184d234339e..00000000000
--- a/build/pyinstaller/hooks/hook-whisper.py
+++ /dev/null
@@ -1,35 +0,0 @@
-import importlib
-
-import importlib_metadata
-from PyInstaller.utils.hooks import copy_metadata
-
-datas = copy_metadata("transformers")
-datas += copy_metadata("tokenizers")
-datas += copy_metadata("tqdm")
-datas += copy_metadata("regex")
-datas += copy_metadata("requests")
-datas += copy_metadata("packaging")
-datas += copy_metadata("filelock")
-datas += copy_metadata("numpy")
-datas += copy_metadata("torch")
-
-candidates = [
- "tensorflow",
- "tensorflow-cpu",
- "tensorflow-gpu",
- "tf-nightly",
- "tf-nightly-cpu",
- "tf-nightly-gpu",
- "intel-tensorflow",
- "intel-tensorflow-avx512",
- "tensorflow-rocm",
- "tensorflow-macos",
- "tensorflow-aarch64",
-]
-for candidate in candidates:
- try:
- if importlib.util.find_spec(candidate):
- datas += copy_metadata(candidate)
- break
- except importlib_metadata.PackageNotFoundError:
- pass
diff --git a/build/pyinstaller/hooks/hook-xgboost.py b/build/pyinstaller/hooks/hook-xgboost.py
deleted file mode 100644
index 4274e6e0aa7..00000000000
--- a/build/pyinstaller/hooks/hook-xgboost.py
+++ /dev/null
@@ -1,3 +0,0 @@
-from PyInstaller.utils.hooks import collect_all
-
-datas, binaries, hiddenimports = collect_all("xgboost")
diff --git a/build/pyinstaller/hooks/pyi_rth_inspect.py b/build/pyinstaller/hooks/pyi_rth_inspect.py
deleted file mode 100644
index 718972baf50..00000000000
--- a/build/pyinstaller/hooks/pyi_rth_inspect.py
+++ /dev/null
@@ -1,39 +0,0 @@
-# Runtime hook copied from pyinstaller
-
-
-import inspect
-import os
-import sys
-
-# pylint:disable=W0622,W0212,E1101
-
-_orig_inspect_getsourcefile = inspect.getsourcefile
-
-
-# Provide custom implementation of inspect.getsourcefile() for frozen applications that properly resolves relative
-# filenames obtained from object (e.g., inspect stack-frames). See #5963.
-def _pyi_getsourcefile(object):
- filename = inspect.getfile(object)
- if not os.path.isabs(filename):
- # Check if given filename matches the basename of __main__'s __file__.
- if hasattr(sys.modules["__main__"], "__file__"):
- main_file = sys.modules["__main__"].__file__
- if filename == os.path.basename(main_file):
- return main_file
-
- # If filename ends with .py suffix and does not correspond to frozen entry-point script, convert it to
- # corresponding .pyc in sys._MEIPASS.
- if filename.endswith(".py"):
- filename = os.path.normpath(os.path.join(sys._MEIPASS, filename + "c"))
- # Ensure the relative path did not try to jump out of sys._MEIPASS, just in case...
- if filename.startswith(sys._MEIPASS):
- return filename
- elif filename.startswith(sys._MEIPASS) and filename.endswith(".pyc"):
- # If filename is already PyInstaller-compatible, prevent any further processing (i.e., with original
- # implementation).
- return filename
- # Use original implementation as a fallback.
- return _orig_inspect_getsourcefile(object)
-
-
-inspect.getsourcefile = _pyi_getsourcefile
diff --git a/build/pyinstaller/macOS/.gitignore b/build/pyinstaller/macOS/.gitignore
deleted file mode 100644
index 2f7896d1d13..00000000000
--- a/build/pyinstaller/macOS/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-target/
diff --git a/build/pyinstaller/macOS/build-macos.sh b/build/pyinstaller/macOS/build-macos.sh
deleted file mode 100755
index b187ee58fe7..00000000000
--- a/build/pyinstaller/macOS/build-macos.sh
+++ /dev/null
@@ -1,216 +0,0 @@
-#!/bin/bash
-
-#Parameters
-SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
-TARGET_DIRECTORY="$SCRIPTPATH/target"
-BASE_DIRECTORY="$( cd -- "$(dirname "$1")" >/dev/null 2>&1 ; pwd -P )"
-APP_DIRECTORY="$BASE_DIRECTORY/DMG/OpenBB Terminal"
-BINARIES="$BASE_DIRECTORY/DMG/OpenBB\ Terminal/.OpenBB"
-ENTITLEMENTS="$BASE_DIRECTORY/build/pyinstaller/entitlements.plist"
-PRODUCT=${1}
-VERSION=${2}
-DATE=`date +%Y-%m-%d`
-TIME=`date +%H:%M:%S`
-LOG_PREFIX="[$DATE $TIME]"
-
-
-function printUsage() {
- echo -e "\033[1mUsage:\033[0m"
- echo "$0 [APPLICATION_NAME] [APPLICATION_VERSION]"
- echo
- echo -e "\033[1mOptions:\033[0m"
- echo " -h (--help)"
- echo
- echo -e "\033[1mExample::\033[0m"
- echo "$0 openbbpro 0.0.1"
-
-}
-
-#Argument validation
-if [ -z "$APPLE_DEVELOPER_CERTIFICATE_ID" ]; then
- echo "APPLE_DEVELOPER_CERTIFICATE_ID environment variable is not set"
- echo "Please run 'security find-identity -v', and then use the value for"
- echo "the developer ID Installer (and NOT the Developer ID Application)"
- exit 1
-fi
-if [[ "$1" == "-h" || "$1" == "--help" ]]; then
- printUsage
- exit 1
-fi
-if [ -z "$1" ]; then
- echo "Please enter a valid application name for your application"
- echo
- printUsage
- exit 1
-else
- echo "Application Name : $1"
-fi
-if [[ "$2" =~ [0-9]+.[0-9]+.[0-9]+ ]]; then
- echo "Application Version : $2"
-else
- echo "Please enter a valid version for your application (format [0-9].[0-9].[0-9])"
- echo
- printUsage
- exit 1
-fi
-if [ -z "$APPLE_SIGNING_IDENTITY" ]; then
- echo "Please set the APPLE_SIGNING_IDENTITY environment variable"
- exit 1
-fi
-
-#Functions
-go_to_dir() {
- pushd $1 >/dev/null 2>&1
-}
-
-log_info() {
- echo "${LOG_PREFIX}[INFO]" $1
-}
-
-log_warn() {
- echo "${LOG_PREFIX}[WARN]" $1
-}
-
-log_error() {
- echo "${LOG_PREFIX}[ERROR]" $1
-}
-
-deleteInstallationDirectory() {
- log_info "Cleaning $TARGET_DIRECTORY directory."
- rm -rf "$TARGET_DIRECTORY"
-
- if [[ $? != 0 ]]; then
- log_error "Failed to clean $TARGET_DIRECTORY directory" $?
- exit 1
- fi
-}
-
-signFiles() {
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/*.so
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/*/*.so
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/*/*/*.so
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/*/*/*/*.so
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/*/*/*/*/*.so
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/*/*/*/*/*/*.so
- echo "Code Signing DYLIB Files"
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/*.dylib
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/*.dylib
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/*/*/*.dylib
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/*/*/*/*/*.dylib
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/pyarrow/*.dylib
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/prophet/.dylibs/*.dylib
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/scipy/.dylibs/*.dylib
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/xgboost/.dylibs/*.dylib
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/prophet/stan_model/cmdstan-2.26.1/stan/lib/stan_math/lib/tbb/*.dylib
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/torch/.dylibs/*.dylib
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/sklearn/.dylibs/*.dylib
- echo "Coce Signing LIB Files"
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/*.lib
- echo "Code Signing Other Files"
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/prophet/stan_model/prophet_model.bin
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/prophet/stan_model/cmdstan-2.26.1/bin/diagnose
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/prophet/stan_model/cmdstan-2.26.1/bin/print
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/prophet/stan_model/cmdstan-2.26.1/bin/stanc
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/prophet/stan_model/cmdstan-2.26.1/bin/stansummary
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/pyarrow/plasma-store-server
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/torch/bin/protoc
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/torch/bin/protoc-3.13.0.0
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/torch/bin/torch_shm_manager
- echo "Code Sign OpenBB Executable File"
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/OpenBBTerminal
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/OpenBBPlotsBackend
- codesign --deep --force --verify --verbose --options runtime --entitlements "$ENTITLEMENTS" -s "$APPLE_SIGNING_IDENTITY" build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/pywry
-}
-
-createInstallationDirectory() {
- if [ -d "${TARGET_DIRECTORY}" ]; then
- deleteInstallationDirectory
- fi
- mkdir -pv "$TARGET_DIRECTORY"
-
- if [[ $? != 0 ]]; then
- log_error "Failed to create $TARGET_DIRECTORY directory" $?
- exit 1
- fi
-}
-
-copyDarwinDirectory(){
- createInstallationDirectory
- cp -r "$SCRIPTPATH/darwin" "${TARGET_DIRECTORY}/"
- chmod -R 755 "${TARGET_DIRECTORY}/darwin/scripts"
- chmod -R 755 "${TARGET_DIRECTORY}/darwin/Resources"
- chmod 755 "${TARGET_DIRECTORY}/darwin/Distribution"
-}
-
-# This creates the target/darwin folder which contains the contents for formatting the installer
-# It also created the target/darkwinpkg folder which has the .app to install
-copyBuildDirectory() {
- sed -i '' -e 's/__VERSION__/'${VERSION}'/g' "${TARGET_DIRECTORY}/darwin/scripts/postinstall"
- sed -i '' -e 's/__PRODUCT__/'${PRODUCT}'/g' "${TARGET_DIRECTORY}/darwin/scripts/postinstall"
- chmod -R 755 "${TARGET_DIRECTORY}/darwin/scripts/postinstall"
-
- sed -i '' -e 's/__VERSION__/'${VERSION}'/g' "${TARGET_DIRECTORY}/darwin/Distribution"
- sed -i '' -e 's/__PRODUCT__/'${PRODUCT}'/g' "${TARGET_DIRECTORY}/darwin/Distribution"
- chmod -R 755 "${TARGET_DIRECTORY}/darwin/Distribution"
-
- sed -i '' -e 's/__VERSION__/'${VERSION}'/g' "${TARGET_DIRECTORY}"/darwin/Resources/*.html
- sed -i '' -e 's/__PRODUCT__/'${PRODUCT}'/g' "${TARGET_DIRECTORY}"/darwin/Resources/*.html
- chmod -R 755 "${TARGET_DIRECTORY}/darwin/Resources/"
-
- rm -rf "${TARGET_DIRECTORY}/darwinpkg"
- mkdir -p "${TARGET_DIRECTORY}/darwinpkg"
-
- mkdir -p "${TARGET_DIRECTORY}"/darwinpkg/Applications
- cp -a "${APP_DIRECTORY}" "${TARGET_DIRECTORY}"/darwinpkg/Applications
-
- rm -rf "${TARGET_DIRECTORY}/package"
- mkdir -p "${TARGET_DIRECTORY}/package"
- chmod -R 755 "${TARGET_DIRECTORY}/package"
-
- rm -rf "${TARGET_DIRECTORY}/pkg"
- mkdir -p "${TARGET_DIRECTORY}/pkg"
- chmod -R 755 "${TARGET_DIRECTORY}/pkg"
-}
-
-# Creates the target/package folder. This includes a basic.pkg file with no formatting
-function buildPackage() {
- log_info "Application installer package building started.(1/3)"
- # For now I removed the --identifier
- pkgbuild --version "${VERSION}" \
- --scripts "${TARGET_DIRECTORY}/darwin/scripts" \
- --root "${TARGET_DIRECTORY}/darwinpkg" \
- --identifier "OpenBB Terminal" \
- --ownership preserve \
- "${TARGET_DIRECTORY}/package/${PRODUCT}.pkg"
-}
-
-# Creates the target/pkg folder. This includes the finished pkg file to let users download
-function buildProduct() {
- log_info "Application installer product building started.(2/3)"
- productbuild --distribution "${TARGET_DIRECTORY}/darwin/Distribution" \
- --resources "${TARGET_DIRECTORY}/darwin/Resources" \
- --package-path "${TARGET_DIRECTORY}/package" \
- --sign "${APPLE_DEVELOPER_CERTIFICATE_ID}" \
- "${TARGET_DIRECTORY}/pkg/$1"
-}
-
-function createInstaller() {
- log_info "Application installer generation process started.(3 Steps)"
- buildPackage
- chmod -R 754 "${TARGET_DIRECTORY}/darwinpkg"
- buildProduct OpenBBTerminalM1.pkg
- log_info "Application installer generation steps finished."
-}
-
-#Main script
-log_info "Installer generating process started."
-
-copyDarwinDirectory
-copyBuildDirectory
-signFiles
-chmod 755 build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/.env
-# chmod -R 755 build/pyinstaller/macOS/target/darwinpkg/Applications/OpenBB\ Terminal/.OpenBB/
-createInstaller
-
-log_info "Installer generating process finished"
-exit 0
diff --git a/build/pyinstaller/macOS/darwin/Distribution b/build/pyinstaller/macOS/darwin/Distribution
deleted file mode 100644
index 9e328d8662c..00000000000
--- a/build/pyinstaller/macOS/darwin/Distribution
+++ /dev/null
@@ -1,36 +0,0 @@
-<?xml version="1.0" encoding="utf-8" standalone="no"?>
-<installer-script minSpecVersion="1.000000">
- <title>__PRODUCT__</title>
- <bundle id="1234" path="/"/>
- <background mime-type="image/png" file="background-light.png" scaling="tofit"/>
- <background-darkAqua mime-type="image/png" file="background.png" scaling="tofit"/>
- <welcome file="welcome.html" mime-type="text/html" />
- <license file="LICENSE.txt"/>
- <options customize="never" allow-external-scripts="no"/>
- <installation-check script="installCheck();"/>
- <os-version min="13.1"/>
- <script>
-function installCheck() {
- if(!(system.compareVersions(system.version.ProductVersion, '10.6.0') >= 0)) {
- my.result.title = 'Unable to install';
- my.result.message = '__PRODUCT__ requires Mac OS X 10.6 or later.';
- my.result.type = 'Fatal';
- return false;
- }
- if(system.files.fileExistsAtPath('/Applications/__PRODUCT__/')) {
- my.result.title = 'Previous Installation Detected';
- my.result.message = 'A previous installation of __PRODUCT__ exists at /Applications/__PRODUCT__/. This installer will remove the previous installation prior to installing. Please back up any data before proceeding.';
- my.result.type = 'Warning';
- return false;
- }
- return true;
-}
- </script>
- <choices-outline>
- <line choice="__PRODUCT__.pkg"/>
- </choices-outline>
- <choice id="__PRODUCT__.pkg" title="__PRODUCT__" description="testing" customLocationAllowAlternateVolumes="true" customLocation="/" enabled="true">
- <pkg-ref id="__PRODUCT__.pkg">__PRODUCT__.pkg</pkg-ref>
- </choice>
- <pkg-ref id="__PRODUCT__.pkg">__PRODUCT__.pkg</pkg-ref>
-</installer-script>
diff --git a/build/pyinstaller/macOS/darwin/Resources/LICENSE.txt b/build/pyinstaller/macOS/darwin/Resources/LICENSE.txt
deleted file mode 100644
index b86fa3e85d2..00000000000
--- a/build/pyinstaller/macOS/darwin/Resources/LICENSE.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2021-2024 OpenBB Inc.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/build/pyinstaller/macOS/darwin/Resources/background-light.png b/build/pyinstaller/macOS/darwin/Resources/background-light.png
deleted file mode 100644
index 29b0d7c410a..00000000000
--- a/build/pyinstaller/macOS/darwin/Resources/background-light.png
+++ /dev/null
Binary files differ
diff --git a/build/pyinstaller/macOS/darwin/Resources/background.png b/build/pyinstaller/macOS/darwin/Resources/background.png
deleted file mode 100644
index 46a9ac8e48b..00000000000
--- a/build/pyinstaller/macOS/darwin/Resources/background.png
+++ /dev/null
Binary files differ
diff --git a/build/pyinstaller/macOS/darwin/Resources/banner.png b/build/pyinstaller/macOS/darwin/Resources/banner.png
deleted file mode 100644
index 3290b6063ea..00000000000
--- a/build/pyinstaller/macOS/darwin/Resources/banner.png
+++ /dev/null
Binary files differ
diff --git a/build/pyinstaller/macOS/darwin/Resources/conclusion.html b/build/pyinstaller/macOS/darwin/Resources/conclusion.html
deleted file mode 100644
index b8e90473469..00000000000
--- a/build/pyinstaller/macOS/darwin/Resources/conclusion.html
+++ /dev/null
@@ -1,35 +0,0 @@
-
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="utf-8" />
- </head>
- <body>
- <div style="font-family: Helvetica; padding-left: 10px;" align="left">
- <h3>WSO2 API Manager</h3>
- <p style="color: #020202; font-size: 11px;">Thank you for installing WSO2 API MAnager.</p>
- <h5>Run API Manager</h5>
- <p style="color: #020202; font-size: 11px;">Open a new terminal and run the following command to get started with APIM server:</p>
- <code style="color: #c6a72b; font-size: 11px;">&nbsp; $ <span style="color: #abb0b0">wso2am-2.6.0 [command]</span></code>
- </div>
- <div style="font-family: Helvetica; padding-left: 10px;" align="left">
- <br/>
- <h5>Resources</h5>
- <p style="color: #020202; font-size: 11px;">Go through following links for additional information.</p>
- <ul>
- <li><a href="https://docs.wso2.com/api-manager/Quick+Start+Guide" style="font-size: 11px;">Quick Start Guide</a></li>
- <li><a href="https://docs.wso2.com/api-manager/" style="font-size: 11px;">Documentation</a></li>
- </ul>
- </div>
- <div style="font-family: Helvetica; padding-left: 10px;" align="left">
- <br/>
- <h5>Uninstall WSO2 API Manager</h5>
- <p style="color: #020202; font-size: 11px;">Run the following command to uninstall WSO2 API Manager. <br />
- <code style="color: #c6a72b; font-size: 11px;"><br />&nbsp; $ <span style="color: #abb0b0">sudo bash /Library/__PRODUCT__/__VERSION__/uninstall.sh</span></code>
- </p>
- </div>
- <div style="font-family: Helvetica; padding-left: 10px;" align="left"><br />
- <p style="color: #abb0b0; font-size: 10px;">Copyright © 2019 WSO2 Inc. All rights reserved. API Manager and its use subject to a license agreement and are also subject to copyright, trademark patent and/or other laws.</p>
- </div>
- </body>
-</html>
diff --git a/build/pyinstaller/macOS/darwin/Resources/uninstall.sh b/build/pyinstaller/macOS/darwin/Resources/uninstall.sh
deleted file mode 100644
index 09e364e9019..00000000000
--- a/build/pyinstaller/macOS/darwin/Resources/uninstall.sh
+++ /dev/null
@@ -1,73 +0,0 @@
-#!/bin/bash
-
-#Generate application uninstallers for macOS.
-
-#Parameters
-DATE=`date +%Y-%m-%d`
-TIME=`date +%H:%M:%S`
-LOG_PREFIX="[$DATE $TIME]"
-
-#Functions
-log_info() {
- echo "${LOG_PREFIX}[INFO]" $1
-}
-
-log_warn() {
- echo "${LOG_PREFIX}[WARN]" $1
-}
-
-log_error() {
- echo "${LOG_PREFIX}[ERROR]" $1
-}
-
-#Check running user
-if (( $EUID != 0 )); then
- echo "Please run as root."
- exit
-fi
-
-echo "Welcome to Application Uninstaller"
-echo "The following packages will be REMOVED:"
-echo " __PRODUCT__-__VERSION__"
-while true; do
- read -p "Do you wish to continue [Y/n]?" answer
- [[ $answer == "y" || $answer == "Y" || $answer == "" ]] && break
- [[ $answer == "n" || $answer == "N" ]] && exit 0
- echo "Please answer with 'y' or 'n'"
-done
-
-
-#Need to replace these with install preparation script
-VERSION=__VERSION__
-PRODUCT=__PRODUCT__
-
-echo "Application uninstalling process started"
-# remove link to shortcut file
-find "/usr/local/bin/" -name "__PRODUCT__-__VERSION__" | xargs rm
-if [ $? -eq 0 ]
-then
- echo "[1/3] [DONE] Successfully deleted shortcut links"
-else
- echo "[1/3] [ERROR] Could not delete shortcut links" >&2
-fi
-
-#forget from pkgutil
-pkgutil --forget "org.$PRODUCT.$VERSION" > /dev/null 2>&1
-if [ $? -eq 0 ]
-then
- echo "[2/3] [DONE] Successfully deleted application informations"
-else
- echo "[2/3] [ERROR] Could not delete application informations" >&2
-fi
-
-#remove application source distribution
-[ -e "/Library/${PRODUCT}/${VERSION}" ] && rm -rf "/Library/${PRODUCT}/${VERSION}"
-if [ $? -eq 0 ]
-then
- echo "[3/3] [DONE] Successfully deleted application"
-else
- echo "[3/3] [ERROR] Could not delete application" >&2
-fi
-
-echo "Application uninstall process finished"
-exit 0
diff --git a/build/pyinstaller/macOS/darwin/Resources/welcome.html b/build/pyinstaller/macOS/darwin/Resources/welcome.html
deleted file mode 100644
index 393d21d1799..00000000000
--- a/build/pyinstaller/macOS/darwin/Resources/welcome.html
+++ /dev/null
@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="utf-8" />
-</head>
-<body>
- <div align="left" style="font-family: Helvetica; padding-left: 10px;">
- <br/>
- <p style="color: #020202; font-size: 12px;">OpenBB is a leading open source investment research software platform for accessing and analyzing financial market data. We represent millions of investors who want to leverage state-of-the-art data science and machine learning technologies to make sense of raw unrefined data. Our mission is to make investment research effective, powerful and accessible to everyone.</p>
- <p style="color: #020202; font-size: 12px;">This installation procedure will install the OpenBB Terminal.</p>
- <p></p>
- </div>
-</body>
-</html>
diff --git a/build/pyinstaller/macOS/darwin/scripts/postinstall b/build/pyinstaller/macOS/darwin/scripts/postinstall
deleted file mode 100644
index 8c3cbfc39d9..00000000000
--- a/build/pyinstaller/macOS/darwin/scripts/postinstall
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-exit 0
diff --git a/build/pyinstaller/macOS_package_assets/OpenBB Terminal/OpenBB Terminal b/build/pyinstaller/macOS_package_assets/OpenBB Terminal/OpenBB Terminal
deleted file mode 100755
index 455e34ab2fb..00000000000
--- a/build/pyinstaller/macOS_package_assets/OpenBB Terminal/OpenBB Terminal
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/bash
-
-clear
-
-SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
-
-echo " _ _ _ "
-echo " | | | (_) "
-echo " | | ___ __ _ __| |_ _ __ __ _ "
-echo " | | / _ \ / _\` |/ _\` | | '_ \ / _\` | "
-echo " | |___| (_) | (_| | (_| | | | | | (_| |_ _ _ "
-echo " |______\___/ \__,_|\__,_|_|_| |_|\__, (_|_|_)"
-echo " __/ | "
-echo " |___/ "
-
-BOOTUP_MESSAGE="
-The boot up process might take a while. Please be patient...
-
-OpenBB Terminal v3.2.5 will be the last version of this Terminal.
-
-To continue our mission of democratizing investment research, we are working on a new open-source CLI tool built on top of the OpenBB Platform that will soon be available to everyone for free on my.openbb.co.
-
-Join us on social media to be among the first to hear the news.
-
-Discord: openbb.co/discord
-Twitter: openbb.co/twitter
-LinkedIn: openbb.co/linkedin
-"
-echo "$BOOTUP_MESSAGE"
-
-"$SCRIPTDIR"/.OpenBB/OpenBBTerminal
diff --git a/build/pyinstaller/macOS_package_assets/README.TXT b/build/pyinstaller/macOS_package_assets/README.TXT
deleted file mode 100644
index a4911975f0c..00000000000
--- a/build/pyinstaller/macOS_package_assets/README.TXT
+++ /dev/null
@@ -1 +0,0 @@
-MOVE THE OpenBB Terminal FOLDER TO THE APPLICATIONS FOLDER
diff --git a/build/pyinstaller/setup_icons.applescript b/build/pyinstaller/setup_icons.applescript
deleted file mode 100644
index 8bbce2b5471..00000000000
--- a/build/pyinstaller/setup_icons.applescript
+++ /dev/null
@@ -1,20 +0,0 @@
-use framework "Foundation"
-use framework "AppKit"
-use scripting additions
-
--- Get script location
-tell application "Finder"
- set current_path to POSIX path of (container of (path to me) as alias)
-end tell
-
--- Set OpenBB Terminal folder icon relative to script location
-set sourcePath to current_path & "../../images/openbb_folder_icon.icns"
-set destPath to current_path & "macOS_package_assets/OpenBB Terminal"
-set imageData to (current application's NSImage's alloc()'s initWithContentsOfFile:sourcePath)
-(current application's NSWorkspace's sharedWorkspace()'s setIcon:imageData forFile:destPath options:2)
-
--- Set OpenBB Terminal launcher icon relative to script location
-set sourcePath to current_path & "../../images/openbb.icns"
-set destPath to current_path & "macOS_package_assets/OpenBB Terminal/OpenBB Terminal"
-set imageData to (current application's NSImage's alloc()'s initWithContentsOfFile:sourcePath)
-(current application's NSWorkspace's sharedWorkspace()'s setIcon:imageData forFile:destPath options:2)
diff --git a/build/pyinstaller/setup_icons_post.applescript b/build/pyinstaller/setup_icons_post.applescript
deleted file mode 100644
index 73587aca012..00000000000
--- a/build/pyinstaller/setup_icons_post.applescript
+++ /dev/null
@@ -1,20 +0,0 @@
-use framework "Foundation"
-use framework "AppKit"
-use scripting additions
-
--- Get script location
-tell application "Finder"
- set current_path to POSIX path of (container of (path to me) as alias)
-end tell
-
--- Set OpenBB Terminal launcher icon in folder relative to script location
-set sourcePath to current_path & "../../images/openbb.icns"
-set destPath to current_path & "../../DMG/OpenBB Terminal/.OpenBB/OpenBBTerminal"
-set imageData to (current application's NSImage's alloc()'s initWithContentsOfFile:sourcePath)
-(current application's NSWorkspace's sharedWorkspace()'s setIcon:imageData forFile:destPath options:2)
-
--- Set OpenBB pywry icon relative to script location
-set sourcePath to current_path & "../../images/openbb.icns"
-set destPath to current_path & "../../DMG/OpenBB Terminal/.OpenBB/pywry"
-set imageData to (current application's NSImage's alloc()'s initWithContentsOfFile:sourcePath)
-(current application's NSWorkspace's sharedWorkspace()'s setIcon:imageData forFile:destPath options:2)
diff --git a/build/pyinstaller/terminal.spec b/build/pyinstaller/terminal.spec
deleted file mode 100644
index 35d0b300995..00000000000
--- a/build/pyinstaller/terminal.spec
+++ /dev/null
@@ -1,217 +0,0 @@
-# -*- mode: python ; coding: utf-8 -*- # noqa
-import os
-from shutil import which
-import subprocess
-import sys
-from pathlib import Path
-import matplotlib
-
-import scipy
-from dotenv import set_key
-from PyInstaller.building.api import COLLECT, EXE, PYZ
-from PyInstaller.building.build_main import Analysis
-from PyInstaller.building.splash import Splash
-from PyInstaller.compat import is_darwin, is_win
-
-from openbb_terminal.loggers import get_commit_hash
-
-NAME = "OpenBBTerminal"
-
-build_type = (
- os.getenv("OPENBB_BUILD_TYPE") if bool(os.getenv("OPENBB_BUILD_TYPE")) else "folder"
-)
-repo_path = Path(os.getcwd()).resolve()
-
-# Local python environment packages folder
-venv_path = Path(sys.executable).parent.parent.resolve()
-
-# Check if we are running in a conda environment
-if is_darwin:
- pathex = os.path.join(os.path.dirname(os.__file__), "site-packages")
-elif "site-packages" in list(venv_path.iterdir()):
- pathex = str(venv_path / "site-packages")
-else:
- pathex = str(venv_path / "lib" / "site-packages")
-
-pathex = Path(pathex).resolve()
-
-# Removing unused ARM64 binary
-binary_to_remove = pathex / "_scs_direct.cpython-39-darwin.so"
-print("Removing ARM64 Binary: _scs_direct.cpython-39-darwin.so")
-binary_to_remove.unlink(missing_ok=True)
-build_assets_folder = repo_path / "build/pyinstaller"
-
-# Removing inspect hook
-destination = pathex / "pyinstaller/hooks/rthooks/pyi_rth_inspect.py"
-print("Replacing Pyinstaller Hook: pyi_rth_inspect.py")
-source = build_assets_folder / "hooks/pyi_rth_inspect.py"
-subprocess.run(["cp", str(source), str(destination)], check=True)
-
-
-# Get latest commit
-commit_hash = get_commit_hash()
-default_env_file = build_assets_folder / ".env"
-set_key(default_env_file, "OPENBB_LOGGING_COMMIT_HASH", str(commit_hash))
-
-# Files that are explicitly pulled into the bundle
-added_files = [
- (str(repo_path / "openbb_terminal"), "openbb_terminal"),
- (str(repo_path / "openbb_terminal/core/plots"), "openbb_terminal/core/plots"),
- (str(pathex / "property_cached"), "property_cached"),
- (str(pathex / "user_agent"), "user_agent"),
- (str(pathex / "vaderSentiment"), "vaderSentiment"),
- (str(pathex / "prophet"), "prophet"),
- (str(pathex / "whisper"), "whisper"),
- (str(pathex / "transformers"), "transformers"),
- (str(pathex / "linearmodels/datasets"), "./linearmodels/datasets"),
- (str(pathex / "statsmodels/datasets"), "./statsmodels/datasets"),
- (str(pathex / "debugpy/_vendored"), "./debugpy/_vendored"),
- (".env", "."),
- (str(pathex / "blib2to3/Grammar.txt"), "blib2to3"),
- (str(pathex / "blib2to3/PatternGrammar.txt"), "blib2to3"),
- (str(pathex / "streamlit"), "streamlit"),
- (str(pathex / "altair"), "altair"),
- (str(pathex / "pyarrow"), "pyarrow"),
- (which("pywry"), "."),
-]
-
-if is_win:
- added_files.extend(
- [
- (os.path.join(f"{os.path.dirname(scipy.__file__)}.libs"), "scipy.libs/"),
- (str(pathex / "frozendict/version.py"), "frozendict"),
- (
- os.path.join(f"{os.path.dirname(matplotlib.__file__)}.libs"),
- "matplotlib.libs/",
- ),
- ]
- )
-
-
-# Python libraries that are explicitly pulled into the bundle
-hidden_imports = [
- "sklearn.utils._cython_blas",
- "sklearn.utils._typedefs",
- "sklearn.utils._heap",
- "sklearn.utils._sorting",
- "sklearn.utils._vector_sentinel",
- "sklearn.neighbors.quad_tree",
- "sklearn.tree._utils",
- "sklearn.neighbors._partition_nodes",
- "sklearn.metrics._pairwise_distances_reduction._datasets_pair",
- "sklearn.metrics._pairwise_distances_reduction._middle_term_computer",
- "squarify",
- "linearmodels",
- "statsmodels",
- "user_agent",
- "vaderSentiment",
- "feedparser",
- "_sysconfigdata__darwin_darwin",
- "prophet",
- "debugpy",
- "pywry",
- "scipy.sparse.linalg._isolve._iterative",
- "whisper",
- "transformers",
- "yt_dlp",
- "textwrap3",
- "streamlit",
- "pytrends",
- "pytrends.request",
- "pyarrow",
-]
-
-
-if is_win:
- hidden_imports.append("frozendict")
-
-analysis_kwargs = dict(
- scripts=[str(repo_path / "terminal.py")],
- pathex=[str(pathex), "."],
- binaries=[],
- datas=added_files,
- hiddenimports=hidden_imports,
- hookspath=["build/pyinstaller/hooks"],
- hooksconfig={},
- runtime_hooks=["build/pyinstaller/hooks/hook-debugpy.py"],
- excludes=[],
- win_no_prefer_redirects=False,
- win_private_assemblies=False,
- cipher=None,
- noarchive=False,
-)
-
-a = Analysis(**analysis_kwargs)
-pyz = PYZ(a.pure, a.zipped_data, cipher=analysis_kwargs["cipher"])
-
-# Executable icon
-if is_win:
- exe_icon = (str(repo_path / "images/openbb_icon.ico"),)
-if is_darwin:
- exe_icon = (str(repo_path / "images/openbb.icns"),)
-
-
-exe_args = [
- pyz,
- a.scripts,
- [],
-]
-
-exe_kwargs = dict(
- name=NAME,
- debug=False,
- bootloader_ignore_signals=False,
- strip=False,
- upx=False,
- upx_exclude=[],
- console=True,
- disable_windowed_traceback=False,
- target_arch="x86_64",
- codesign_identity=None,
- entitlements_file=None,
- icon=exe_icon,
- version="version.rc",
-)
-
-
-# Packaging settings
-if build_type == "onefile":
- exe_args += [a.binaries, a.zipfiles, a.datas]
- exe_kwargs["runtime_tmpdir"] = None
-elif build_type == "folder":
- exe_kwargs["exclude_binaries"] = True
- collect_args = [
- a.binaries,
- a.zipfiles,
- a.datas,
- ]
- collect_kwargs = dict(
- strip=False,
- upx=True,
- upx_exclude=[],
- name=NAME,
- )
-
-
-# Platform specific settings
-if is_win:
- splash = Splash(
- str(repo_path / "images/openbb_splashscreen.png"),
- binaries=a.binaries,
- datas=a.datas,
- text_pos=(200, 400),
- text_size=12,
- text_color="white",
- )
- exe_args += [splash, splash.binaries]
-
-if is_darwin:
- exe_kwargs["argv_emulation"] = True
-
-exe = EXE(*exe_args, **exe_kwargs)
-
-if build_type == "folder":
- coll = COLLECT(
- *([exe] + collect_args),
- **collect_kwargs,
- )
diff --git a/build/pyinstaller/version.rc b/build/pyinstaller/version.rc
deleted file mode 100644
index 8a232ed040d..00000000000
--- a/build/pyinstaller/version.rc
+++ /dev/null
@@ -1,42 +0,0 @@
-# UTF-8
-#
-# For more details about fixed file info 'ffi' see:
-# http://msdn.microsoft.com/en-us/library/ms646997.aspx
-VSVersionInfo(
- ffi=FixedFileInfo(
- # filevers and prodvers should be always a tuple with four items: (1, 2, 3, 4)
- # Set not needed items to zero 0.
- filevers=(3, 2, 4, 0),
- prodvers=(3, 2, 4, 0),
- # Contains a bitmask that specifies the valid bits 'flags'r
- mask=0x0,
- # Contains a bitmask that specifies the Boolean attributes of the file.
- flags=0x0,
- # The operating system for which this file was designed.
- # 0x4 - NT and there is no need to change it.
- OS=0x4,
- # The general type of file.
- # 0x1 - the file is an application.
- fileType=0x1,
- # The function of the file.
- # 0x0 - the function is not defined for this fileType
- subtype=0x0,
- # Creation date and time stamp.
- date=(0, 0)
- ),
- kids=[
- StringFileInfo(
- [
- StringTable(
- '040904b0',
- [StringStruct('Comments', 'The OpenBB Terminal. For additional details, visit OpenBB.co'),
- StringStruct('CompanyName', 'OpenBB'),
- StringStruct('FileDescription', 'OpenBB Terminal Program'),
- StringStruct('FileVersion', '5.0'),
- StringStruct('InternalName', 'OpenBB Terminal'),
- StringStruct('ProductName', 'OpenBB Terminal'),
- StringStruct('ProductVersion', '3.2.5.0')])
- ]),
- VarFileInfo([VarStruct('Translation', [1033, 1200])])
- ]
-)
diff --git a/build/pypi/openbb_terminal/build.sh b/build/pypi/openbb_terminal/build.sh
deleted file mode 100755
index b02d361e436..00000000000
--- a/build/pypi/openbb_terminal/build.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-# BUILD `openbb_terminal/.env`
-OPENBB_LOGGING_COMMIT_HASH="sha:$(git rev-parse --short=8 HEAD)"
-OPENBB_LOGGING_APP_NAME="gst_packaged_pypi"
-echo "OPENBB_LOGGING_APP_NAME='${OPENBB_LOGGING_APP_NAME}'" > openbb_terminal/.env
-echo "OPENBB_LOGGING_COMMIT_HASH=${OPENBB_LOGGING_COMMIT_HASH}" >> openbb_terminal/.env
-
-poetry publish --build \ No newline at end of file
diff --git a/build/pypi/openbb_terminal/test_publish.sh b/build/pypi/openbb_terminal/test_publish.sh
deleted file mode 100755
index ef5c2e1a348..00000000000
--- a/build/pypi/openbb_terminal/test_publish.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-# BUILD `openbb_terminal/.env`
-OPENBB_LOGGING_COMMIT_HASH="sha:$(git rev-parse --short=8 HEAD)"
-OPENBB_LOGGING_APP_NAME="gst_packaged_pypi"
-echo "OPENBB_LOGGING_APP_NAME='${OPENBB_LOGGING_APP_NAME}'" > openbb_terminal/.env
-echo "OPENBB_LOGGING_COMMIT_HASH=${OPENBB_LOGGING_COMMIT_HASH}" >> openbb_terminal/.env
-
-poetry publish -r testpypi --build \ No newline at end of file