Skip to content

Commit e850851

Browse files
Copilotaxgd-code
andauthored
Include src/ scripts in per-platform ui-bundle release zips (#3)
* Initial plan * Include src/ scripts in ui-bundle release zips alongside Python app build Agent-Logs-Url: https://github.com/axgd-code/ok_computer/sessions/88d6b3a0-a42e-4790-befb-abb10326514f Co-authored-by: axgd-code <1721781+axgd-code@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: axgd-code <1721781+axgd-code@users.noreply.github.com>
1 parent 13f4ad8 commit e850851

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,22 +107,28 @@ jobs:
107107
- name: Archive macOS app
108108
if: matrix.os == 'macos-latest'
109109
run: |
110-
mkdir -p release
111-
ditto -c -k --sequesterRsrc --keepParent ui/dist/ok_computer_ui.app release/ok_computer-ui-${{ matrix.asset_suffix }}-${{ steps.vars.outputs.tag }}.zip
110+
mkdir -p release staging
111+
cp -R ui/dist/ok_computer_ui.app staging/
112+
cp -R src staging/src
113+
ditto -c -k --sequesterRsrc staging release/ok_computer-ui-${{ matrix.asset_suffix }}-${{ steps.vars.outputs.tag }}.zip
112114
113115
- name: Archive Linux bundle
114116
if: matrix.os == 'ubuntu-latest'
115117
run: |
116-
mkdir -p release
117-
cd ui/dist
118-
zip -qr ../../release/ok_computer-ui-${{ matrix.asset_suffix }}-${{ steps.vars.outputs.tag }}.zip ok_computer_ui
118+
mkdir -p release staging
119+
cp -R ui/dist/ok_computer_ui staging/
120+
cp -R src staging/src
121+
cd staging
122+
zip -qr ../release/ok_computer-ui-${{ matrix.asset_suffix }}-${{ steps.vars.outputs.tag }}.zip .
119123
120124
- name: Archive Windows bundle
121125
if: matrix.os == 'windows-latest'
122126
shell: pwsh
123127
run: |
124-
New-Item -ItemType Directory -Force -Path release | Out-Null
125-
Compress-Archive -Path ui/dist/ok_computer_ui/* -DestinationPath release/ok_computer-ui-${{ matrix.asset_suffix }}-${{ steps.vars.outputs.tag }}.zip -Force
128+
New-Item -ItemType Directory -Force -Path release, staging | Out-Null
129+
Copy-Item -Recurse ui/dist/ok_computer_ui staging/ok_computer_ui
130+
Copy-Item -Recurse src staging/src
131+
Compress-Archive -Path staging/* -DestinationPath release/ok_computer-ui-${{ matrix.asset_suffix }}-${{ steps.vars.outputs.tag }}.zip -Force
126132
127133
- name: Upload UI bundle to release
128134
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)