overlayeddev / overlayed

A modern, open-source, and free voice chat overlay for Discord that supports Mac, Linux, and Windows
https://overlayed.dev
GNU Affero General Public License v3.0
308 stars 25 forks source link

Windows & Linux One Line Installers #72

Closed SticksDev closed 3 months ago

SticksDev commented 4 months ago

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

Hacksore commented 4 months ago

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 commented 4 months ago

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

https://api.overlayed.dev/latest

Hacksore commented 3 months ago

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

Closing the issue for now though!

Hacksore commented 3 months ago

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"