@@ -299,8 +299,8 @@ jobs:
299299 path : dist/BetterGI.Install.*.exe
300300 - uses : actions/upload-artifact@v4
301301 with :
302- name : BetterGI_Metadata
303- path : dist/metadata.json
302+ name : BetterGI_OnlineInst
303+ path : dist/BetterGI/BetterGI.update.exe
304304
305305 build_setup :
306306 runs-on : windows-latest
@@ -349,11 +349,6 @@ jobs:
349349 - uses : actions/download-artifact@v4
350350 with :
351351 path : artifacts
352-
353- - name : Append Metadata
354- shell : bash
355- run : |
356- mv artifacts/BetterGI_Metadata/metadata.json artifacts/BetterGI_Metadata/BetterGI_Metadata.json
357352
358353 - name : Create Release
359354 uses : softprops/action-gh-release@v1
@@ -366,7 +361,6 @@ jobs:
366361 files : |
367362 artifacts/BetterGI_7z/*.7z
368363 artifacts/BetterGI_Install/*.exe
369- artifacts/BetterGI_Metadata/*.json
370364
371365 mirrorchyan_uploading :
372366 if : github.repository_owner == 'babalae' && contains(needs.validate.outputs.version, '-')
@@ -417,14 +411,14 @@ jobs:
417411 curl -fSL -o "vc_redist.x64.exe" "https://aka.ms/vs/17/release/vc_redist.x64.exe"
418412 # embed
419413 echo "Embedding runtimes"
420- ./kachina-builder.exe append -o ./downloads/BetterGI_Install/BetterGI.Install.*.exe -f "$OUTPUT" -n "Microsoft.DotNet.DesktopRuntime.8" -f "vc_redist.x64.exe" -n "Microsoft.VCRedist.2015+.x64"
421-
414+ ./kachina-builder.exe append -o ./downloads/BetterGI_Install/BetterGI.Install.*.exe -f "$OUTPUT" -n "Microsoft.DotNet.DesktopRuntime.8" -f "vc_redist.x64.exe" -n "Microsoft.VCRedist.2015+.x64"
415+ ./kachina-builder.exe extract -i ./downloads/BetterGI_Install/BetterGI.Install.*.exe -f ./metadata.json -n "\0META"
422416 - name : Extract 7z and create zip
423417 shell : bash
424418 run : |
425419 cd downloads/BetterGI_7z
426420 7z x BetterGI_v*.7z -oun7z
427- mv ../BetterGI_Metadata /metadata.json ./un7z/BetterGI/.metadata.json
421+ mv ../.. /metadata.json ./un7z/BetterGI/.metadata.json
428422 7z a -tzip BetterGI.zip un7z/BetterGI -mx=5 -mf=BCJ2 -r -y
429423 ls .
430424 ls ./un7z/BetterGI
0 commit comments