Skip to content

Commit

Permalink
Fix Inverted Logic On Build Type
Browse files Browse the repository at this point in the history
  • Loading branch information
NoMoreFood committed Oct 29, 2024
1 parent 83d67ce commit 3847f61
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ ECHO 1. Beta
ECHO 2. Production
SET /p CHOICE=Enter Choice (1 or 2):
SET RELTYPE=
IF "%CHOICE%" EQU "1" SET RELTYPE=PRODUCTION
IF "%CHOICE%" EQU "2" SET RELTYPE=BETA
IF "%CHOICE%" EQU "1" SET RELTYPE=BETA
IF "%CHOICE%" EQU "2" SET RELTYPE=PRODUCTION
IF "%RELTYPE%" EQU "" EXIT /B 1

:: setup environment variables based on location of this script
Expand Down
8 changes: 4 additions & 4 deletions setup/Defines.wxi
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<!-- Product GUIDs & Version Number -->
<?define ProductID = "*"?>
<?if $(var.RELTYPE) = PRODUCTION ?>
<?define ProductVersion = "$(var.MAJVER).$(var.MINVER).$(var.PATCH)"?>
<?define UpgradeCode = "46F106C9-090C-43D0-8815-D03BA9FA55A9"?>
<?define ProductVersion = "$(var.MAJVER).$(var.MINVER).$(var.PATCH)"?>
<?define UpgradeCode = "46F106C9-090C-43D0-8815-D03BA9FA55A9"?>
<?else ?>
<?define ProductVersion = "$(var.MAJVER).$(var.MINVER).$(var.PATCH).$(var.BUILD)"?>
<?define UpgradeCode = "E211CCFB-D706-4919-B2FF-0F7F426EA27B"?>
<?define ProductVersion = "$(var.MAJVER).$(var.MINVER).$(var.PATCH).$(var.BUILD)"?>
<?define UpgradeCode = "E211CCFB-D706-4919-B2FF-0F7F426EA27B"?>
<?endif ?>

<!-- Product and Company information -->
Expand Down

0 comments on commit 3847f61

Please sign in to comment.