Skip to content

Instantly share code, notes, and snippets.

@Mara-Li
Last active December 21, 2023 17:48
Show Gist options
  • Save Mara-Li/15997a783f6f12bd182efabfabf334ec to your computer and use it in GitHub Desktop.
Save Mara-Li/15997a783f6f12bd182efabfabf334ec to your computer and use it in GitHub Desktop.
Discord — Canary & Powershell autorun-update

Requirements


First, follow the steps for the manual installation of Better discord

After downloading the powershell scripts, to auto-run it at startup, go into %appdata%\Microsoft\Windows\Start Menu\Programs\Startup.

Create a new shortcuts, and set into "cible" : pwsh.exe -Command "<emplacement of powershell scripts>"

For example, I put mine into C:\Users\<username>, so here the commands : "C:\Program Files\PowerShell\7\pwsh.exe" -Command "C:\Users\xxxx\discord.ps1"

Editing the scripts

Warning

YOU NEED TO UPDATE THE SCRIPTS BY CHANGING THE PATH TO DISCORD CANARY

Don't forget to edit the C:\Users<username> by yours!!

cd ~/BetterDiscord;
& git pull
& pnpm run build
& C:\Users\xxxxxx\AppData\Local\DiscordCanary\Update.exe --processStart DiscordCanary.exe
& Stop-Process -name DiscordCanary -Force
& pnpm run inject canary
& C:\Users\xxxxx\AppData\Local\DiscordCanary\Update.exe --processStart DiscordCanary.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment