mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
* Add more build assets and all notebook checkpoints to ignore * Delete old reports that were accidentally added to the repo * Fix portfolios not bundling * Add mac installer image assets * Update license * Make the code folder hidden in macOS package * Add folder and launcher icons programmatically during build * Change dmg creation tool to create-dmg * Update macOS installation docs * Bump project version * Update macOS installation instruction image links * Fix macOS installation instructions styling * Unify macOS install instructions image size * Point download links to the website vs github * Fix macOS launcher self-quarantine command * Fix routines not launching in packaged apps * Fix .openbb test mode not displaying filenames during test run * Remove file with weird apple character in path
21 lines
1022 B
AppleScript
Vendored
21 lines
1022 B
AppleScript
Vendored
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)
|