|
1 | | ---- script/lib/package-application.js.orig 2019-05-22 03:44:37 UTC |
| 1 | +--- script/lib/package-application.js.orig 2019-10-21 17:33:40 UTC |
2 | 2 | +++ script/lib/package-application.js |
3 | | -@@ -46,7 +46,7 @@ module.exports = function () { |
4 | | - if (process.platform === 'darwin') { |
5 | | - bundledResourcesPath = path.join(packagedAppPath, 'Contents', 'Resources') |
6 | | - setAtomHelperVersion(packagedAppPath) |
| 3 | +@@ -66,7 +66,7 @@ module.exports = function() { |
| 4 | + 'Resources' |
| 5 | + ); |
| 6 | + setAtomHelperVersion(packagedAppPath); |
7 | 7 | - } else if (process.platform === 'linux') { |
8 | 8 | + } else if (process.platform === 'linux' || process.platform === 'freebsd') { |
9 | | - bundledResourcesPath = path.join(packagedAppPath, 'resources') |
10 | | - chmodNodeFiles(packagedAppPath) |
| 9 | + bundledResourcesPath = path.join(packagedAppPath, 'resources'); |
| 10 | + chmodNodeFiles(packagedAppPath); |
11 | 11 | } else { |
12 | | -@@ -75,7 +75,7 @@ function copyNonASARResources (packagedAppPath, bundle |
13 | | - } |
14 | | - if (process.platform === 'darwin') { |
15 | | - fs.copySync(path.join(CONFIG.repositoryRootPath, 'resources', 'mac', 'file.icns'), path.join(bundledResourcesPath, 'file.icns')) |
| 12 | +@@ -118,7 +118,7 @@ function copyNonASARResources(packagedAppPath, bundled |
| 13 | + path.join(CONFIG.repositoryRootPath, 'resources', 'mac', 'file.icns'), |
| 14 | + path.join(bundledResourcesPath, 'file.icns') |
| 15 | + ); |
16 | 16 | - } else if (process.platform === 'linux') { |
17 | 17 | + } else if (process.platform === 'linux' || process.platform === 'freebsd') { |
18 | | - fs.copySync(path.join(CONFIG.repositoryRootPath, 'resources', 'app-icons', CONFIG.channel, 'png', '1024.png'), path.join(packagedAppPath, 'atom.png')) |
19 | | - } else if (process.platform === 'win32') { |
20 | | - [ 'atom.cmd', 'atom.sh', 'atom.js', 'apm.cmd', 'apm.sh', 'file.ico', 'folder.ico' ] |
21 | | -@@ -141,7 +141,7 @@ function renamePackagedAppDir (packageOutputDirPath) { |
22 | | - packagedAppPath = path.join(CONFIG.buildOutputPath, appBundleName) |
23 | | - if (fs.existsSync(packagedAppPath)) fs.removeSync(packagedAppPath) |
24 | | - fs.renameSync(path.join(packageOutputDirPath, appBundleName), packagedAppPath) |
| 18 | + fs.copySync( |
| 19 | + path.join( |
| 20 | + CONFIG.repositoryRootPath, |
| 21 | +@@ -234,7 +234,7 @@ function renamePackagedAppDir(packageOutputDirPath) { |
| 22 | + path.join(packageOutputDirPath, appBundleName), |
| 23 | + packagedAppPath |
| 24 | + ); |
25 | 25 | - } else if (process.platform === 'linux') { |
26 | 26 | + } else if (process.platform === 'linux' || process.platform === 'freebsd') { |
27 | | - const appName = CONFIG.channel !== 'stable' ? `atom-${CONFIG.channel}` : 'atom' |
28 | | - let architecture |
29 | | - if (HOST_ARCH === 'ia32') { |
| 27 | + const appName = |
| 28 | + CONFIG.channel !== 'stable' ? `atom-${CONFIG.channel}` : 'atom'; |
| 29 | + let architecture; |
0 commit comments