"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "script/package.ts" between
desktop-release-2.5.0-linux1.tar.gz and desktop-release-2.5.0-linux2.tar.gz

About: GitHub Desktop (Linux) is an open source Electron-based GitHub app. It is written in TypeScript and uses React. A fork of GitHub Desktop to support various Linux distributions. Release candidate.

package.ts  (desktop-release-2.5.0-linux1):package.ts  (desktop-release-2.5.0-linux2)
skipping to change at line 25 skipping to change at line 25
getWindowsStandaloneName, getWindowsStandaloneName,
getWindowsInstallerName, getWindowsInstallerName,
shouldMakeDelta, shouldMakeDelta,
getUpdatesURL, getUpdatesURL,
getIconFileName, getIconFileName,
} from './dist-info' } from './dist-info'
import { isAppveyor } from './build-platforms' import { isAppveyor } from './build-platforms'
import { packageElectronBuilder } from './package-electron-builder' import { packageElectronBuilder } from './package-electron-builder'
import { packageDebian } from './package-debian' import { packageDebian } from './package-debian'
import { packageRedhat } from './package-redhat'
const distPath = getDistPath() const distPath = getDistPath()
const productName = getProductName() const productName = getProductName()
const outputDir = path.join(distPath, '..', 'installer') const outputDir = path.join(distPath, '..', 'installer')
if (process.platform === 'darwin') { if (process.platform === 'darwin') {
packageOSX() packageOSX()
} else if (process.platform === 'win32') { } else if (process.platform === 'win32') {
packageWindows() packageWindows()
} else if (process.platform === 'linux') { } else if (process.platform === 'linux') {
skipping to change at line 181 skipping to change at line 182
} }
async function packageLinux() { async function packageLinux() {
const helperPath = path.join(getDistPath(), 'chrome-sandbox') const helperPath = path.join(getDistPath(), 'chrome-sandbox')
const exists = fs.pathExistsSync(helperPath) const exists = fs.pathExistsSync(helperPath)
if (exists) { if (exists) {
console.log('Updating file mode for chrome-sandbox…') console.log('Updating file mode for chrome-sandbox…')
fs.chmodSync(helperPath, 0o4755) fs.chmodSync(helperPath, 0o4755)
} }
try {
const files = await packageElectronBuilder() const files = await packageElectronBuilder()
const debianPackage = await packageDebian() const debianPackage = await packageDebian()
const redhatPackage = await packageRedhat()
const installers = [...files, debianPackage]
const installers = [...files, debianPackage, redhatPackage]
console.log(`Installers created:`)
for (const installer of installers) { console.log(`Installers created:`)
console.log(` - ${installer}`) for (const installer of installers) {
console.log(` - ${installer}`)
}
generateChecksums(installers)
} catch (err) {
console.error('A problem occurred with the packaging step', err)
process.exit(1)
} }
generateChecksums(installers)
} }
 End of changes. 3 change blocks. 
11 lines changed or deleted 17 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)