mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
🎨
This commit is contained in:
@@ -67,7 +67,7 @@ dumpSymbols()
|
||||
return createWindowsInstaller(packagedAppPath, argv.codeSign).then(() => packagedAppPath)
|
||||
}
|
||||
else {
|
||||
console.log('Skipping creating installer. Specify the --create-windows-installer option to create a Squirrel-based Windows installer.'.gray)
|
||||
console.log('Skipping creating installer. Specify the --create-windows-installer option to create a Squirrel-based Windows installer. Code-signing was skipped too.'.gray)
|
||||
}
|
||||
} else if (process.platform === 'linux') {
|
||||
if (argv.createDebianPackage) {
|
||||
|
||||
@@ -13,7 +13,15 @@ module.exports = function (packagedAppPath) {
|
||||
} else if (process.platform === 'win32') {
|
||||
appArchiveName = 'atom-windows.zip'
|
||||
} else {
|
||||
appArchiveName = 'atom-amd64.tar.gz'
|
||||
let arch
|
||||
if (process.arch === 'ia32') {
|
||||
arch = 'i386'
|
||||
} else if (process.arch === 'x64') {
|
||||
arch = 'amd64'
|
||||
} else {
|
||||
arch = process.arch
|
||||
}
|
||||
appArchiveName = `atom-${arch}.tar.gz`
|
||||
}
|
||||
const appArchivePath = path.join(CONFIG.buildOutputPath, appArchiveName)
|
||||
compress(packagedAppPath, appArchivePath)
|
||||
|
||||
@@ -24,7 +24,7 @@ module.exports = function (packagedAppPath) {
|
||||
arch = process.arch
|
||||
}
|
||||
|
||||
const outputDebianPackageFilePath = path.join(CONFIG.buildOutputPath, `atom-amd64.deb`)
|
||||
const outputDebianPackageFilePath = path.join(CONFIG.buildOutputPath, `atom-${arch}.deb`)
|
||||
const debianPackageDirPath = path.join(os.tmpdir(), path.basename(packagedAppPath))
|
||||
const debianPackageConfigPath = path.join(debianPackageDirPath, 'DEBIAN')
|
||||
const debianPackageInstallDirPath = path.join(debianPackageDirPath, 'usr')
|
||||
|
||||
@@ -18,14 +18,6 @@ module.exports = function (packagedAppPath) {
|
||||
// RPM versions can't have dashes or tildes in them.
|
||||
// (Ref.: https://twiki.cern.ch/twiki/bin/view/Main/RPMAndDebVersioning)
|
||||
const appVersion = CONFIG.appMetadata.version.replace(/-/g, '.')
|
||||
let arch
|
||||
if (process.arch === 'ia32') {
|
||||
arch = 'i386'
|
||||
} else if (process.arch === 'x64') {
|
||||
arch = 'amd64'
|
||||
} else {
|
||||
arch = process.arch
|
||||
}
|
||||
|
||||
const rpmPackageDirPath = path.join(CONFIG.homeDirPath, 'rpmbuild')
|
||||
const rpmPackageBuildDirPath = path.join(rpmPackageDirPath, 'BUILD')
|
||||
|
||||
Reference in New Issue
Block a user