mirror of
https://github.com/GAM-team/GAM.git
synced 2025-05-12 04:07:21 +00:00
actions MSI for Windows x64 only for now
This commit is contained in:
parent
f53c8086e8
commit
f050017771
32
.github/workflows/build.yml
vendored
32
.github/workflows/build.yml
vendored
@ -670,23 +670,25 @@ jobs:
|
|||||||
echo "moved to $(pwd)"
|
echo "moved to $(pwd)"
|
||||||
GAM_ARCHIVE="${GITHUB_WORKSPACE}/gam-${GAMVERSION}-windows-${GAM_ARCHIVE_ARCH}.zip"
|
GAM_ARCHIVE="${GITHUB_WORKSPACE}/gam-${GAMVERSION}-windows-${GAM_ARCHIVE_ARCH}.zip"
|
||||||
/c/Program\ Files/7-Zip/7z.exe a -tzip "$GAM_ARCHIVE" gam7 "-xr@${GITHUB_WORKSPACE}/.github/actions/package_exclusions.txt" -bb3
|
/c/Program\ Files/7-Zip/7z.exe a -tzip "$GAM_ARCHIVE" gam7 "-xr@${GITHUB_WORKSPACE}/.github/actions/package_exclusions.txt" -bb3
|
||||||
cd ../..
|
if [ "RUNNER_ARCH" == "X64" ]; then
|
||||||
echo "moved to $(pwd)"
|
cd ../..
|
||||||
export MSI_FILENAME="${GITHUB_WORKSPACE}/gam-${GAMVERSION}-windows-${GAM_ARCHIVE_ARCH}.msi"
|
echo "moved to $(pwd)"
|
||||||
# auto-generate a lib.wxs based on the files PyInstaller created for the lib/ directory
|
export MSI_FILENAME="${GITHUB_WORKSPACE}/gam-${GAMVERSION}-windows-${GAM_ARCHIVE_ARCH}.msi"
|
||||||
/c/Program\ Files\ \(x86\)/WiX\ Toolset\ v3.14/bin/heat.exe dir "${gampath}/lib" -ke -srd -cg Lib -gg -dr lib -directoryid lib -out lib.wxs
|
# auto-generate a lib.wxs based on the files PyInstaller created for the lib/ directory
|
||||||
$PYTHON tools/gen-wix-xml-filelist.py lib.wxs
|
/c/Program\ Files\ \(x86\)/WiX\ Toolset\ v3.14/bin/heat.exe dir "${gampath}/lib" -ke -srd -cg Lib -gg -dr lib -directoryid lib -out lib.wxs
|
||||||
echo "-- begin lib.wxs --"
|
$PYTHON tools/gen-wix-xml-filelist.py lib.wxs
|
||||||
cat lib.wxs
|
echo "-- begin lib.wxs --"
|
||||||
echo "-- end lib.wxs --"
|
cat lib.wxs
|
||||||
/c/Program\ Files\ \(x86\)/WiX\ Toolset\ v3.14/bin/candle.exe -arch "${WIX_ARCH}" gam.wxs lib.wxs
|
echo "-- end lib.wxs --"
|
||||||
/c/Program\ Files\ \(x86\)/WiX\ Toolset\ v3.14/bin/light.exe -ext /c/Program\ Files\ \(x86\)/WiX\ Toolset\ v3.14/bin/WixUIExtension.dll gam.wixobj lib.wixobj -b "${gampath}/lib" -o "$MSI_FILENAME" || true;
|
/c/Program\ Files\ \(x86\)/WiX\ Toolset\ v3.14/bin/candle.exe -arch "${WIX_ARCH}" gam.wxs lib.wxs
|
||||||
rm -v -f *.wixpdb
|
/c/Program\ Files\ \(x86\)/WiX\ Toolset\ v3.14/bin/light.exe -ext /c/Program\ Files\ \(x86\)/WiX\ Toolset\ v3.14/bin/WixUIExtension.dll gam.wixobj lib.wixobj -b "${gampath}/lib" -o "$MSI_FILENAME" || true;
|
||||||
rm -v -f *.wixobj
|
rm -v -f *.wixpdb
|
||||||
echo "MSI_FILENAME=${MSI_FILENAME}" >> $GITHUB_ENV
|
rm -v -f *.wixobj
|
||||||
|
echo "MSI_FILENAME=${MSI_FILENAME}" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Upload gam MSI Windows for signing
|
- name: Upload gam MSI Windows for signing
|
||||||
if: runner.os == 'Windows' && matrix.goal != 'test'
|
if: runner.os == 'Windows' && runner.arch == 'X64' && matrix.goal != 'test'
|
||||||
run: |
|
run: |
|
||||||
export folder_number=$(date +%s)
|
export folder_number=$(date +%s)
|
||||||
export folder_id=$($gam user gam-win-signer@pdl.jaylee.us add drivefile drivefilename "UPLOADING_FOR_SIGN ${folder_number}" parentid "1Xz3hYq4Mfa_r6D8EcBZHLDtHDFurYSvp" mimetype gfolder returnidonly)
|
export folder_id=$($gam user gam-win-signer@pdl.jaylee.us add drivefile drivefilename "UPLOADING_FOR_SIGN ${folder_number}" parentid "1Xz3hYq4Mfa_r6D8EcBZHLDtHDFurYSvp" mimetype gfolder returnidonly)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user