-
Notifications
You must be signed in to change notification settings - Fork 329
Support Windows Arm64 Build #1801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,11 +21,9 @@ | |
| destination for 32-bit versus 64-bit installers. Removal of these lines will | ||
| cause installation errors. | ||
| --> | ||
| <?if $(var.Platform) = x64 ?> | ||
| <?define Win64 = "yes" ?> | ||
| <?if $(sys.BUILDARCH) = x64 or $(sys.BUILDARCH) = arm64 ?> | ||
| <?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?> | ||
| <?else ?> | ||
| <?define Win64 = "no" ?> | ||
| <?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?> | ||
| <?endif ?> | ||
|
|
||
|
|
@@ -44,12 +42,11 @@ | |
| Keywords='Installer' | ||
| Description='The JavaScript Launcher' | ||
| Manufacturer='The Volta Maintainers' | ||
| InstallerVersion='450' | ||
| InstallerVersion='500' | ||
| Languages='1033' | ||
| Compressed='yes' | ||
| InstallScope='perMachine' | ||
| SummaryCodepage='1252' | ||
| Platform='$(var.Platform)'/> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are you dropping the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am deleting it for the same reason as here: #1801 (comment) |
||
| SummaryCodepage='1252'/> | ||
|
|
||
| <MajorUpgrade | ||
| Schedule='afterInstallInitialize' | ||
|
|
@@ -62,16 +59,18 @@ | |
| <Directory Id='INSTALLDIR' Name='Volta'> | ||
| </Directory> | ||
| </Directory> | ||
| <?if $(sys.BUILDARCH) = x64 ?> | ||
| <Merge Id='VCRedist' SourceFile='wix\Microsoft_VC140_CRT_x64.msm' DiskId='1' Language='0'/> | ||
| <?endif ?> | ||
|
Comment on lines
+62
to
+64
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are you dropping this check?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since the VC++ redistribution runtime was only available for x64, I have added a condition so that it is only included for x64 as before. |
||
| </Directory> | ||
|
|
||
| <ComponentGroup Id='Binaries' Directory='INSTALLDIR'> | ||
| <Component Id='voltaBinary' Guid='*' Win64='$(var.Win64)'> | ||
| <Component Id='voltaBinary' Guid='*'> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here and throughout, why are you removing
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am deleting it for the same reason as here: #1801 (comment) |
||
| <File | ||
| Id='voltaEXE' | ||
| Name='volta.exe' | ||
| DiskId='1' | ||
| Source='target\release\volta.exe' | ||
| Source='$(var.CargoTargetBinDir)\volta.exe' | ||
| KeyPath='yes'/> | ||
| <Environment | ||
| Id='INSTALLPATH' | ||
|
|
@@ -82,103 +81,103 @@ | |
| Action='set' | ||
| System='yes' /> | ||
| </Component> | ||
| <Component Id='shimBinary' Guid='*' Win64='$(var.Win64)'> | ||
| <Component Id='shimBinary' Guid='*'> | ||
| <File | ||
| Id='voltashimEXE' | ||
| Name='volta-shim.exe' | ||
| DiskId='1' | ||
| Source='target\release\volta-shim.exe' | ||
| Source='$(var.CargoTargetBinDir)\volta-shim.exe' | ||
| KeyPath='yes'/> | ||
| </Component> | ||
| <Component Id='migrateBinary' Guid='*' Win64='$(var.Win64)'> | ||
| <Component Id='migrateBinary' Guid='*'> | ||
| <File | ||
| Id='voltamigrateEXE' | ||
| Name='volta-migrate.exe' | ||
| DiskId='1' | ||
| Source='target\release\volta-migrate.exe' | ||
| Source='$(var.CargoTargetBinDir)\volta-migrate.exe' | ||
| KeyPath='yes'/> | ||
| </Component> | ||
| <Component Id='nodeBinary' Guid='*' Win64='$(var.Win64)'> | ||
| <Component Id='nodeBinary' Guid='*'> | ||
| <File | ||
| Id='nodeEXE' | ||
| Name='node.exe' | ||
| DiskId='1' | ||
| Source='target\release\volta-shim.exe' | ||
| Source='$(var.CargoTargetBinDir)\volta-shim.exe' | ||
| KeyPath='yes'/> | ||
| </Component> | ||
| <Component Id='npmBinary' Guid='*' Win64='$(var.Win64)'> | ||
| <Component Id='npmBinary' Guid='*'> | ||
| <File | ||
| Id='npmEXE' | ||
| Name='npm.exe' | ||
| DiskId='1' | ||
| Source='target\release\volta-shim.exe' | ||
| Source='$(var.CargoTargetBinDir)\volta-shim.exe' | ||
| KeyPath='yes'/> | ||
| </Component> | ||
| <Component Id='npmScript' Guid='*' Win64='$(var.Win64)'> | ||
| <Component Id='npmScript' Guid='*'> | ||
| <File | ||
| Id='npmCMD' | ||
| Name='npm.cmd' | ||
| DiskId='1' | ||
| Source='wix\shim.cmd' | ||
| KeyPath='yes'/> | ||
| </Component> | ||
| <Component Id='npxBinary' Guid='*' Win64='$(var.Win64)'> | ||
| <Component Id='npxBinary' Guid='*'> | ||
| <File | ||
| Id='npxEXE' | ||
| Name='npx.exe' | ||
| DiskId='1' | ||
| Source='target\release\volta-shim.exe' | ||
| Source='$(var.CargoTargetBinDir)\volta-shim.exe' | ||
| KeyPath='yes'/> | ||
| </Component> | ||
| <Component Id='npxScript' Guid='*' Win64='$(var.Win64)'> | ||
| <Component Id='npxScript' Guid='*'> | ||
| <File | ||
| Id='npxCMD' | ||
| Name='npx.cmd' | ||
| DiskId='1' | ||
| Source='wix\shim.cmd' | ||
| KeyPath='yes'/> | ||
| </Component> | ||
| <Component Id='pnpmBinary' Guid='*' Win64='$(var.Win64)'> | ||
| <Component Id='pnpmBinary' Guid='*'> | ||
| <File | ||
| Id='pnpmEXE' | ||
| Name='pnpm.exe' | ||
| DiskId='1' | ||
| Source='target\release\volta-shim.exe' | ||
| Source='$(var.CargoTargetBinDir)\volta-shim.exe' | ||
| KeyPath='yes'/> | ||
| </Component> | ||
| <Component Id='pnpmScript' Guid='*' Win64='$(var.Win64)'> | ||
| <Component Id='pnpmScript' Guid='*'> | ||
| <File | ||
| Id='pnpmCMD' | ||
| Name='pnpm.cmd' | ||
| DiskId='1' | ||
| Source='wix\shim.cmd' | ||
| KeyPath='yes'/> | ||
| </Component> | ||
| <Component Id='yarnBinary' Guid='*' Win64='$(var.Win64)'> | ||
| <Component Id='yarnBinary' Guid='*'> | ||
| <File | ||
| Id='yarnEXE' | ||
| Name='yarn.exe' | ||
| DiskId='1' | ||
| Source='target\release\volta-shim.exe' | ||
| Source='$(var.CargoTargetBinDir)\volta-shim.exe' | ||
| KeyPath='yes'/> | ||
| </Component> | ||
| <Component Id='yarnScript' Guid='*' Win64='$(var.Win64)'> | ||
| <Component Id='yarnScript' Guid='*'> | ||
| <File | ||
| Id='yarnCMD' | ||
| Name='yarn.cmd' | ||
| DiskId='1' | ||
| Source='wix\shim.cmd' | ||
| KeyPath='yes'/> | ||
| </Component> | ||
| <Component Id='yarnPkgBinary' Guid='*' Win64='$(var.Win64)'> | ||
| <Component Id='yarnPkgBinary' Guid='*'> | ||
| <File | ||
| Id='yarnpgkEXE' | ||
| Name='yarnpkg.exe' | ||
| DiskId='1' | ||
| Source='target\release\volta-shim.exe' | ||
| Source='$(var.CargoTargetBinDir)\volta-shim.exe' | ||
| KeyPath='yes'/> | ||
| </Component> | ||
| <Component Id='yarnPkgScript' Guid='*' Win64='$(var.Win64)'> | ||
| <Component Id='yarnPkgScript' Guid='*'> | ||
| <File | ||
| Id='yarnpkgCMD' | ||
| Name='yarnpkg.cmd' | ||
|
|
@@ -192,9 +191,11 @@ | |
| <ComponentGroupRef Id='Binaries'/> | ||
| </Feature> | ||
|
|
||
| <?if $(sys.BUILDARCH) = x64 ?> | ||
| <Feature Id='VCRedistributable' Title='Visual C++ Runtime' AllowAdvertise='no' Display='hidden' Level='1'> | ||
| <MergeRef Id='VCRedist'/> | ||
| </Feature> | ||
| <?endif ?> | ||
|
Comment on lines
+194
to
+198
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Likewise, why the addition of the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added a condition that the VC++ redistribution runtime should not be included on arm64 since it was included for x64. However, I do not know why the redistribution runtime is included. In my opinion, it seems unnecessary.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like that was added in #592, as it's needed to actually run Volta and not always available on the system.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I looked into it because I couldn't find a merge module for Arm64, and it seems that it is now deprecated.
|
||
|
|
||
| <SetProperty Id='ARPINSTALLLOCATION' Value='[APPLICATIONFOLDER]' After='CostFinalize'/> | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the
Win64changes here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
Win64andPlatformsettings have been removed as they are now deprecated in wix. The details are described in the following pull request from cargo-wix, which is shared here.volks73/cargo-wix#113 (comment)