@@ -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