Skip to content

Repository files navigation

About

Use the digitalxero/go-msix library to create a MSIX package.

Develop

Install Chocolatey.

Install MSYS2 and Go:

choco install -y msys2 --params="'/NoPath'"
choco install -y go

Execute 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-msix

Install 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'

References

About

Use the digitalxero/go-msix library to create a MSIX package.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages