|
2 | 2 | * Copyright (c) Microsoft Corporation. All rights reserved. |
3 | 3 | * Licensed under the MIT License. See License.txt in the project root for license information. |
4 | 4 | *--------------------------------------------------------------------------------------------*/ |
5 | | -import gulp from 'gulp'; |
6 | | -import * as path from 'path'; |
7 | | -import * as fs from 'fs'; |
8 | 5 | import assert from 'assert'; |
9 | 6 | import * as cp from 'child_process'; |
10 | | -import * as util from './lib/util.ts'; |
11 | | -import * as getVersionModule from './lib/getVersion.ts'; |
12 | | -import * as task from './lib/task.ts'; |
| 7 | +import * as fs from 'fs'; |
| 8 | +import gulp from 'gulp'; |
| 9 | +import * as path from 'path'; |
| 10 | +import rcedit from 'rcedit'; |
| 11 | +import vfs from 'vinyl-fs'; |
13 | 12 | import pkg from '../package.json' with { type: 'json' }; |
14 | 13 | import product from '../product.json' with { type: 'json' }; |
15 | | -import vfs from 'vinyl-fs'; |
16 | | -import rcedit from 'rcedit'; |
17 | | -import { createRequire } from 'module'; |
| 14 | +import { getVersion } from './lib/getVersion.ts'; |
| 15 | +import * as task from './lib/task.ts'; |
| 16 | +import * as util from './lib/util.ts'; |
18 | 17 |
|
19 | | -const { getVersion } = getVersionModule; |
| 18 | +import { createRequire } from 'module'; |
20 | 19 | const require = createRequire(import.meta.url); |
| 20 | + |
21 | 21 | const repoPath = path.dirname(import.meta.dirname); |
22 | 22 | const commit = getVersion(repoPath); |
23 | 23 | const buildPath = (arch: string) => path.join(path.dirname(repoPath), `VSCode-win32-${arch}`); |
@@ -58,12 +58,12 @@ function packageInnoSetup(iss: string, options: { definitions?: Record<string, u |
58 | 58 | }); |
59 | 59 | } |
60 | 60 |
|
61 | | -function buildWin32Setup(arch: string, target: string) { |
| 61 | +function buildWin32Setup(arch: string, target: string): task.CallbackTask { |
62 | 62 | if (target !== 'system' && target !== 'user') { |
63 | 63 | throw new Error('Invalid setup target'); |
64 | 64 | } |
65 | 65 |
|
66 | | - return (cb?: (err?: any) => void) => { |
| 66 | + return (cb) => { |
67 | 67 | const x64AppId = target === 'system' ? product.win32x64AppId : product.win32x64UserAppId; |
68 | 68 | const arm64AppId = target === 'system' ? product.win32arm64AppId : product.win32arm64UserAppId; |
69 | 69 |
|
|
0 commit comments