Skip to content

Commit

Permalink
Fix setting of release channel in pulsar.cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
savetheclocktower committed Nov 1, 2024
1 parent f62c686 commit c965e54
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions resources/win/pulsar.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,19 @@ FOR %%a IN (%*) DO (
)

set EXE_NAME=
set SCRIPT_NAME=
set ATOM_CHANNEL=
set PPM_NAME=

set ATOM_BASE_NAME="%SCRIPT_NAME%"

REM Use the name of the executable to infer a release channel.
set SCRIPT_NAME=%~n0
set ATOM_BASE_NAME=%~n0

if "%SCRIPT_NAME%"=="pulsar-next" (
if "%ATOM_BASE_NAME%"=="pulsar-next" (
set ATOM_CHANNEL="next"
set EXE_NAME="PulsarNext"
set PPM_NAME="ppm-next"
)

if "%SCRIPT_NAME%"=="pulsar" (
if "%ATOM_BASE_NAME%"=="pulsar" (
set ATOM_CHANNEL="stable"
set EXE_NAME="Pulsar"
set PPM_NAME="ppm"
Expand Down

0 comments on commit c965e54

Please sign in to comment.