ipasimulator / ipasim

iOS emulator for Windows
https://janjones.me/projects/ipasim/
MIT License
811 stars 90 forks source link

Excecutable installer #12

Open upintheairsheep opened 1 year ago

upintheairsheep commented 1 year ago

Hello, I would like to publish ipasim onto the WinGet repository, however they have a strict policy against apps that use scripts to install, and was never implemented due to agreements. Scripts within executables are allowed onto the platform, though.

jjonescz commented 1 year ago

I don't think executable installer is necessary, WinGet manifests can point to .msix. But they would need some real certificate, ipasim currently only has a self-signed one.

Alternatively, you can package the powershell script in a self-extracting archive - would that work? For example, I used https://superuser.com/a/929132 with the following config to produce an .exe installer which seems to work fine.

;!@Install@!UTF-8!
Title="ipasim v1.0.1.0"
ExecuteFile="powershell.exe"
ExecuteParameters="-ExecutionPolicy Bypass -File Add-AppDevPackage.ps1 -Force"
;!@InstallEnd@!

I've uploaded the installer here:

https://github.com/ipasimulator/ipasim/releases/download/v1.0.1/ipasim-build-v1.0.1-2023-01-01.exe