-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
19 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
installable_apps/installable_image.py → .../desktop_application/installable_image.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# build the app for distribution | ||
pyinstaller letta.spec | ||
pyinstaller macos.spec | ||
|
||
# fix for known silent exec fail from https://github.com/pyinstaller/pyinstaller/issues/5154#issuecomment-2508011279 | ||
APP_NAME="letta" | ||
APP_VERSION=$( python -c "from importlib.metadata import version; print(version('letta'))") | ||
BUILD_ARCH=$(uname -m) | ||
WORKDIR=dist/$APP_NAME.app/Contents/MacOS | ||
mv $WORKDIR/$APP_NAME $WORKDIR/${APP_NAME}_cli | ||
# fix for known silent exec fail from https://github.com/pyinstaller/pyinstaller/issues/5154#issuecomment-2508011279 | ||
WORKDIR=dist/letta.app/Contents/MacOS | ||
mv $WORKDIR/letta $WORKDIR/letta_cli | ||
|
||
cat << EOF > $WORKDIR/$APP_NAME | ||
cat << EOF > $WORKDIR/letta | ||
#!/bin/bash | ||
# This is the launcher for OSX, this way the app will be opened | ||
# when you double click it from the apps folder | ||
open -n /Applications/${APP_NAME}.app/Contents/MacOS/${APP_NAME}_cli | ||
open -n /Applications/letta.app/Contents/MacOS/letta_cli | ||
EOF | ||
|
||
chmod +x $WORKDIR/$APP_NAME | ||
chmod +x $WORKDIR/letta | ||
|
||
mkdir dist/package | ||
cp -r dist/$APP_NAME.app dist/package | ||
cp -r dist/letta.app dist/package | ||
|
||
# Create the .dmg file | ||
create-dmg --volname "Letta Installer" --window-size 800 400 --icon-size 100 --background "assets/installer_background.png" --icon letta.app 200 200 --hide-extension letta.app --app-drop-link 600 185 "Letta-Installer-${APP_VERSION}-${BUILD_ARCH}.dmg" dist/package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters