File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,10 @@ import (
1818 "golang.org/x/sync/errgroup"
1919)
2020
21- var studio = rbxweb .BinaryTypeWindowsStudio64
21+ var (
22+ studio = rbxweb .BinaryTypeWindowsStudio64
23+ channelKey = `HKCU\Software\ROBLOX Corporation\Environments\RobloxStudio\Channel`
24+ )
2225
2326func (b * bootstrapper ) setupDeployment () error {
2427 if err := b .setDeployment (); err != nil {
@@ -45,11 +48,21 @@ func (b *bootstrapper) setupDeployment() error {
4548 return err
4649 }
4750
51+ defer b .performing ()()
52+
4853 b .message ("Writing AppSettings" )
4954 if err := rbxbin .WriteAppSettings (b .dir ); err != nil {
5055 return fmt .Errorf ("appsettings: %w" , err )
5156 }
5257
58+ // Default channel is none, but UserChannel will set LIVE.
59+ if b .bin .Channel != "" && b .bin .Channel != "LIVE" {
60+ b .message ("Writing Registry" )
61+ if err := b .pfx .RegistryAdd (channelKey , "www.roblox.com" , b .bin .Channel ); err != nil {
62+ return fmt .Errorf ("set channel reg: %w" )
63+ }
64+ }
65+
5366 slog .Info ("Successfully installed!" , "guid" , b .bin .GUID )
5467
5568 return nil
You can’t perform that action at this time.
0 commit comments