mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-05-22 06:27:42 +08:00
* poetry, req files * installer spec pywry 0.6.0 changes * fix `df_volume` being sent as `pd.Series` on Macs * more `pd.Series` fixes * bump pywry to 0.6.1 -fixes linux install
21 lines
1009 B
AppleScript
Vendored
21 lines
1009 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 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)
|