-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from unconv/pyinstaller
Improved Windows support and added PyInstaller scripts
- Loading branch information
Showing
11 changed files
with
144 additions
and
42 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
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
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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
zip/ |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# GPT-AutoPilot PyInstaller | ||
|
||
GPT-AutoPilot can be converted into a standalone application with [PyInstaller](https://www.pyinstaller.org/). | ||
|
||
This folder has scripts for creating a zip package of the standalone application for different operating systems. | ||
|
||
The standalone application will be created for the platform the script is run on. |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# clone and cd into repo | ||
git clone https://github.com/unconv/gpt-autopilot.git | ||
cd gpt-autopilot | ||
|
||
# run pyinstaller | ||
pyinstaller gpt-autopilot.py | ||
|
||
# add system_message to package | ||
cp system_message dist/gpt-autopilot/ | ||
|
||
# make zip package | ||
cd dist/ | ||
mkdir -p ../../zip/; | ||
zip -r "../../zip/gpt-autopilot-linux.zip" gpt-autopilot | ||
|
||
# remove git repo | ||
cd ../../; rm -rf gpt-autopilot/ |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@echo off | ||
|
||
REM clone and cd into repo | ||
git clone https://github.com/unconv/gpt-autopilot.git | ||
cd gpt-autopilot | ||
|
||
REM run pyinstaller | ||
pyinstaller gpt-autopilot.py | ||
|
||
REM add system_message to package | ||
copy system_message dist\gpt-autopilot\ | ||
|
||
REM make zip package using 7-Zip | ||
cd dist | ||
mkdir "..\..\zip\" | ||
7z a "..\..\zip\gpt-autopilot-windows.zip" gpt-autopilot\* | ||
|
||
REM remove git repo | ||
cd ..\..\ & rmdir /s /q gpt-autopilot |