@@ -65,6 +65,7 @@ function buildWin32Setup(arch, target) {
6565 return cb => {
6666 const ia32AppId = target === 'system' ? product . win32AppId : product . win32UserAppId ;
6767 const x64AppId = target === 'system' ? product . win32x64AppId : product . win32x64UserAppId ;
68+ const arm64AppId = target === 'system' ? product . win32arm64AppId : product . win32arm64UserAppId ;
6869
6970 const sourcePath = buildPath ( arch ) ;
7071 const outputPath = setupDir ( arch , target ) ;
@@ -88,12 +89,12 @@ function buildWin32Setup(arch, target) {
8889 ShellNameShort : product . win32ShellNameShort ,
8990 AppMutex : product . win32MutexName ,
9091 Arch : arch ,
91- AppId : arch === 'ia32' ? ia32AppId : x64AppId ,
92- IncompatibleTargetAppId : arch === 'ia32' ? product . win32AppId : product . win32x64AppId ,
93- IncompatibleArchAppId : arch === 'ia32' ? x64AppId : ia32AppId ,
92+ AppId : { 'ia32' : ia32AppId , 'x64' : x64AppId , 'arm64' : arm64AppId } [ arch ] ,
93+ IncompatibleTargetAppId : { 'ia32' : product . win32AppId , 'x64' : product . win32x64AppId , 'arm64' : product . win32arm64AppId } [ arch ] ,
94+ IncompatibleArchAppId : { 'ia32' : x64AppId , 'x64' : ia32AppId , 'arm64' : ia32AppId } [ arch ] ,
9495 AppUserId : product . win32AppUserModelId ,
95- ArchitecturesAllowed : arch === 'ia32' ? '' : 'x64' ,
96- ArchitecturesInstallIn64BitMode : arch === 'ia32' ? '' : 'x64' ,
96+ ArchitecturesAllowed : { 'ia32' : '' , 'x64' : 'x64' , 'arm64' : 'arm64' } [ arch ] ,
97+ ArchitecturesInstallIn64BitMode : { 'ia32' : '' , 'x64' : 'x64' , 'arm64' : 'arm64' } [ arch ] ,
9798 SourceDir : sourcePath ,
9899 RepoDir : repoPath ,
99100 OutputDir : outputPath ,
@@ -112,8 +113,10 @@ function defineWin32SetupTasks(arch, target) {
112113
113114defineWin32SetupTasks ( 'ia32' , 'system' ) ;
114115defineWin32SetupTasks ( 'x64' , 'system' ) ;
116+ defineWin32SetupTasks ( 'arm64' , 'system' ) ;
115117defineWin32SetupTasks ( 'ia32' , 'user' ) ;
116118defineWin32SetupTasks ( 'x64' , 'user' ) ;
119+ defineWin32SetupTasks ( 'arm64' , 'user' ) ;
117120
118121function archiveWin32Setup ( arch ) {
119122 return cb => {
@@ -145,6 +148,7 @@ function updateIcon(executablePath) {
145148
146149gulp . task ( task . define ( 'vscode-win32-ia32-inno-updater' , task . series ( copyInnoUpdater ( 'ia32' ) , updateIcon ( path . join ( buildPath ( 'ia32' ) , 'tools' , 'inno_updater.exe' ) ) ) ) ) ;
147150gulp . task ( task . define ( 'vscode-win32-x64-inno-updater' , task . series ( copyInnoUpdater ( 'x64' ) , updateIcon ( path . join ( buildPath ( 'x64' ) , 'tools' , 'inno_updater.exe' ) ) ) ) ) ;
151+ gulp . task ( task . define ( 'vscode-win32-arm64-inno-updater' , task . series ( copyInnoUpdater ( 'arm64' ) , updateIcon ( path . join ( buildPath ( 'arm64' ) , 'tools' , 'inno_updater.exe' ) ) ) ) ) ;
148152
149153// CodeHelper.exe icon
150154
0 commit comments