Use the digitalxero/go-msix library to create a MSIX package.
Install Chocolatey.
choco install -y msys2 --params="'/NoPath'"
choco install -y goExecute the following commands in a MSYS2 bash session.
Build the application and the MSIX:
go generate ./...
CGO_ENABLED=0 GOAMD64=v3 go build -trimpath -ldflags "-s -w"
./use-go-msix.exe build-msixInstall the unsigned MSIX, show information about it, execute it, and finally uninstall it:
unzip -l use-go-msix-unsigned.msix
unzip -p use-go-msix-unsigned.msix AppxManifest.xml
pwsh -Command 'Add-AppxPackage use-go-msix-unsigned.msix -AllowUnsigned'
pwsh -Command 'Get-AppxPackage -Name UseGoMsix'
pwsh -Command '&"$((Get-AppxPackage -Name UseGoMsix).InstallLocation)\use-go-msix.exe"'
pwsh -Command 'Start-Process "shell:AppsFolder\$((Get-AppxPackage -Name UseGoMsix).PackageFamilyName)!App"'
pwsh -Command 'Get-AppxPackage -Name UseGoMsix | Remove-AppxPackage'- https://learn.microsoft.com/en-us/windows/apps/desktop/modernize/package-identity-overview
- https://learn.microsoft.com/en-us/windows/msix/package/unsigned-package
- https://devblogs.microsoft.com/insidemsix/is-this-a-packaged-process/
- https://github.com/digitalxero/go-msix
- https://thesvg.org/icon/gopher