overlayed icon indicating copy to clipboard operation
overlayed copied to clipboard

Windows & Linux One Line Installers

Open SticksDev opened this issue 10 months ago • 2 comments

An installer script for Linux and Windows would be excellent, and I would be willing to add them. It's pretty simple to make them nowadays, and you can make a simple Cloudflare worker to handle sending the correct script to the user. Here's how I thought about implementing it:

Because Windows is a .msi, you can use msiexec to install the msi within a PowerShell script. It's pretty simple to get the latest version using the GitHub API.

For Linux, .debs can be installed using dkpg -i; the only caveat is that dkpg must be run as root.

There's no use for Mac as Homebrew already has a package for overlayed package.

Let me know what you think

SticksDev avatar Apr 25 '24 13:04 SticksDev

Can you link examples of how other popular tools do this? Rust seems to just give you the exe to download/run.

I'd imagine it'd be something like this for windows but wanna see what the vibe is.

powershell -command "& {Invoke-WebRequest -Uri '<CDN_URL>' -OutFile 'installer.exe'}; Start-Process 'installer.exe' -Wait; Remove-Item 'installer.exe'" 

Hacksore avatar Apr 27 '24 13:04 Hacksore

Also FWIW, you can find the latest download bins here, so this might help when scripting it.

https://api.overlayed.dev/latest

Hacksore avatar Apr 27 '24 13:04 Hacksore

You can send a PR for this if you have a good lookin™ command for winderz.

Closing the issue for now though!

Hacksore avatar May 25 '24 16:05 Hacksore

Here is a bun tweet and they do https://x.com/bunjavascript/status/1796856115877359694?s=46&t=wcJWAj_mdr7mNg_eOgQdPA

powershell -c "irm bun.sh/install.ps1 | iex"

Hacksore avatar Jun 01 '24 13:06 Hacksore