Skip to content

Commit 0d120b4

Browse files
Merge pull request #38 from drunkenbot-ai/ncj-dneg-update-trial-ui-limits
Add trial mode and automated releases
2 parents 294466e + d63d346 commit 0d120b4

2 files changed

Lines changed: 75 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Build and publish release installers
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build:
13+
name: Build ${{ matrix.os }}
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
include:
19+
- os: windows-latest
20+
artifact: windows
21+
- os: macos-latest
22+
artifact: macos
23+
- os: ubuntu-latest
24+
artifact: linux
25+
26+
steps:
27+
- name: Check out source and submodules
28+
uses: actions/checkout@v4
29+
with:
30+
submodules: recursive
31+
32+
- name: Set up Python
33+
uses: actions/setup-python@v5
34+
with:
35+
python-version: "3.12"
36+
37+
- name: Install Inno Setup
38+
if: runner.os == 'Windows'
39+
shell: powershell
40+
run: choco install innosetup --no-progress --yes
41+
42+
- name: Install build dependencies
43+
run: |
44+
python -m pip install --upgrade pip
45+
python -m pip install -r requirements.txt
46+
python -m pip install pyinstaller
47+
48+
- name: Build installer
49+
run: python packager.py
50+
51+
- name: Upload installer
52+
uses: actions/upload-artifact@v4
53+
with:
54+
name: installer-${{ matrix.artifact }}
55+
path: packaging/artifacts/*
56+
if-no-files-found: error
57+
58+
release:
59+
name: Publish GitHub Release
60+
needs: build
61+
runs-on: ubuntu-latest
62+
steps:
63+
- name: Download installers
64+
uses: actions/download-artifact@v4
65+
with:
66+
pattern: installer-*
67+
path: release-assets
68+
merge-multiple: true
69+
70+
- name: Create release
71+
uses: softprops/action-gh-release@v2
72+
with:
73+
generate_release_notes: true
74+
files: release-assets/*

packager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def build(*, clean: bool, runtime_dir: Path | None = None, gpu: bool = False) ->
164164
f'Source: "{bundle}\\*"; DestDir: "{{app}}"; Flags: recursesubdirs ignoreversion',
165165
*( [f'Source: "{icon_path}"; DestDir: "{{app}}"; Flags: ignoreversion'] if icon_path else [] ),
166166
"[Icons]",
167-
*( ['Name: "{autoprograms}\\drunkenBot-IDE\\DrunkenBot-LLM-IDE"; Filename: "{app}\\DrunkenBot-LLM-IDE.exe"; IconFilename: "{app}\\drunken_bot_logo_small.ico"'] if icon_path else [] ),
167+
*( [f'Name: "{{autoprograms}}\\{APP_NAME}\\{APP_NAME}"; Filename: "{{app}}\\{APP_NAME}.exe"; IconFilename: "{{app}}\\drunken_bot_logo_small.ico"'] if icon_path else [] ),
168168
*( [f'Name: "{{commondesktop}}\\{APP_NAME}"; Filename: "{{app}}\\{APP_NAME}.exe"; IconFilename: "{{app}}\\drunken_bot_logo_small.ico"'] if icon_path else [] ),
169169
"[Run]",
170170
'Filename: "{app}\\runtime\\Scripts\\python.exe"; Parameters: """{app}\\runtime_setup.py"" --ensure"; WorkingDir: "{app}"; Flags: waituntilterminated; StatusMsg: "Installing hardware runtime. See runtime_setup.log for details..."',

0 commit comments

Comments
 (0)