Windows builds MSI file

This commit is contained in:
Gauthier Delacroix 2022-10-13 20:10:58 +02:00
parent 3d8f2ec657
commit 58f59debd9
2 changed files with 13 additions and 0 deletions

View File

@ -75,6 +75,8 @@ jobs:
make build
cp dist/OpenLens*.exe releasefiles/OpenLens-${{ env.LENS_VERSION }}.exe
cp dist/OpenLens*.exe dist/OpenLens-${{ env.LENS_VERSION }}.exe
cp dist/OpenLens*.msi releasefiles/OpenLens-${{ env.LENS_VERSION }}.msi
cp dist/OpenLens*.msi dist/OpenLens-${{ env.LENS_VERSION }}.msi
fi
shell: bash
working-directory: lens
@ -94,6 +96,7 @@ jobs:
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
certutil -hashfile OpenLens-${{ env.LENS_VERSION }}.exe SHA256 | tee OpenLens-${{ env.LENS_VERSION }}.exe.sha256
certutil -hashfile OpenLens-${{ env.LENS_VERSION }}.msi SHA256 | tee OpenLens-${{ env.LENS_VERSION }}.msi.sha256
else
for filename in OpenLens-${{ env.LENS_VERSION }}*; do shasum -a 256 ${filename} | tee ${filename}.sha256 ; done
fi
@ -112,6 +115,7 @@ jobs:
lens/dist/OpenLens-${{ env.LENS_VERSION }}*.rpm
lens/dist/OpenLens-${{ env.LENS_VERSION }}*.zip
lens/dist/OpenLens-${{ env.LENS_VERSION }}.exe
lens/dist/OpenLens-${{ env.LENS_VERSION }}.msi
lens/dist/OpenLens-${{ env.LENS_VERSION }}*.sha256
- name: Generate Changelog
@ -129,6 +133,7 @@ jobs:
lens/dist/OpenLens-${{ env.LENS_VERSION }}*.rpm
lens/dist/OpenLens-${{ env.LENS_VERSION }}*.zip
lens/dist/OpenLens-${{ env.LENS_VERSION }}.exe
lens/dist/OpenLens-${{ env.LENS_VERSION }}.msi
lens/dist/OpenLens-${{ env.LENS_VERSION }}*.sha256
- name: Latest
uses: softprops/action-gh-release@v0.1.14
@ -142,4 +147,5 @@ jobs:
lens/dist/OpenLens-${{ env.LENS_VERSION }}*.rpm
lens/dist/OpenLens-${{ env.LENS_VERSION }}*.zip
lens/dist/OpenLens.Setup.${{ env.LENS_VERSION }}.exe
lens/dist/OpenLens.Setup.${{ env.LENS_VERSION }}.msi
lens/dist/lates*.yml

View File

@ -8,5 +8,12 @@ packagejson.build.publish = [{
}];
packagejson.build.win.artifactName = "OpenLens.Setup.${version}.${ext}";
packagejson.build.win.target = ["nsis", "msi"];
packagejson.build.msi = {
oneClick: true,
perMachine: false,
createDesktopShortcut: false,
createStartMenuShortcut: true
};
fs.writeFileSync('package.json', JSON.stringify(packagejson));