-
Notifications
You must be signed in to change notification settings - Fork 11
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 #15 from Zhou-Shilin/main
BREAKING CHANGE: Add support for Windows/Linux executable edition
- Loading branch information
Showing
5 changed files
with
136 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Linux Builds | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.x | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Build project | ||
run: python setup.py build | ||
|
||
- name: Zip build folder | ||
run: | | ||
cd build | ||
zip -r ../linux-build.zip . | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: linux-build | ||
path: linux-build.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,41 @@ | ||
name: Windows Builds | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.x | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Build project | ||
run: python setup.py build | ||
|
||
- name: Zip build folder | ||
run: | | ||
cd build | ||
Compress-Archive -Path . -DestinationPath ../windows-build.zip | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: windows-build | ||
path: windows-build.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
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,6 +1,5 @@ | ||
openai>=1.13.3 | ||
pyyaml | ||
tkinter | ||
cx_Freeze | ||
playwright | ||
uuid | ||
uuid |
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,31 @@ | ||
from cx_Freeze import setup, Executable | ||
|
||
import config | ||
|
||
files = [ | ||
"browser.py", | ||
"config.py", | ||
"config.yaml", | ||
"console.py", | ||
"core.py", | ||
"LICENSE", | ||
"log_writer.py", | ||
"logo.png", | ||
"README.md", | ||
"requirements.txt", | ||
"ui.py" | ||
] | ||
|
||
setup(name='BuilderGPT', | ||
version=config.VERSION_NUMBER, | ||
maintainer="CubeGPT Team", | ||
maintainer_email="[email protected]", | ||
url="https://github.com/CubeGPT/BuilderGPT", | ||
license="Apache License 2.0", | ||
description='An open source, free, AI-powered Minecraft structure generator developed by CubeGPT.', | ||
executables=[Executable('ui.py', base="gui")], | ||
options={ | ||
"build_exe": { | ||
"include_files": files, | ||
} | ||
}) |