Add deb target to linux build (#1093)
Summary: I'm adding the `.deb` option to linux build, it makes easier to install. ```bash cd desktop yarn build --linux --linux-deb ``` ## Changelog - Add deb target to linux build Pull Request resolved: https://github.com/facebook/flipper/pull/1093 Reviewed By: mweststrate Differential Revision: D21378807 Pulled By: passy fbshipit-source-id: a72a85705d3c464cddd80091d38c92012bdbee2c
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c1b360cb0f
commit
d7bfa993a5
@@ -3,7 +3,12 @@
|
||||
"version": "0.40.0",
|
||||
"description": "Mobile development tool",
|
||||
"productName": "Flipper",
|
||||
"author": "Facebook Inc",
|
||||
"author": {
|
||||
"name": "Facebook Inc",
|
||||
"email": "n/a",
|
||||
"url": "https://github.com/facebook"
|
||||
},
|
||||
"homepage": "https://fbflipper.com/",
|
||||
"icon": "icon.png",
|
||||
"category": "facebook-intern",
|
||||
"privileged": true,
|
||||
@@ -42,6 +47,13 @@
|
||||
"NSUserNotificationAlertStyle": "alert"
|
||||
}
|
||||
},
|
||||
"linux": {
|
||||
"icon": "icon.icns",
|
||||
"category": "Development"
|
||||
},
|
||||
"deb": {
|
||||
"icon": "icon.icns"
|
||||
},
|
||||
"dmg": {
|
||||
"background": "dmgBackground.png",
|
||||
"icon": "icon.icns",
|
||||
@@ -232,7 +244,7 @@
|
||||
"lint": "yarn lint:eslint && yarn lint:flow && yarn lint:tsc",
|
||||
"bump-versions": "./ts-node scripts/bump-versions.ts",
|
||||
"publish-packages": "./ts-node scripts/publish-packages.ts",
|
||||
"everything": "yarn reset && yarn install && yarn lint && yarn test && yarn test-electron && yarn build --mac --mac-dmg --win --linux && yarn build-headless --mac --linux && yarn start"
|
||||
"everything": "yarn reset && yarn install && yarn lint && yarn test && yarn test-electron && yarn build --mac --mac-dmg --win --linux --linux-deb && yarn build-headless --mac --linux && yarn start"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"7zip-bin-mac": "^1.0.1"
|
||||
|
||||
@@ -80,6 +80,13 @@ async function buildDist(buildFolder: string) {
|
||||
}
|
||||
if (process.argv.indexOf('--linux') > -1) {
|
||||
targetsRaw.push(Platform.LINUX.createTarget(['zip']));
|
||||
|
||||
const argv = process.argv.slice(2);
|
||||
if (argv.indexOf('--linux-deb') > -1) {
|
||||
// linux targets can be:
|
||||
// AppImage, snap, deb, rpm, freebsd, pacman, p5p, apk, 7z, zip, tar.xz, tar.lz, tar.gz, tar.bz2, dir
|
||||
targetsRaw.push(Platform.LINUX.createTarget(['deb']));
|
||||
}
|
||||
}
|
||||
if (process.argv.indexOf('--win') > -1) {
|
||||
targetsRaw.push(Platform.WINDOWS.createTarget(['zip']));
|
||||
|
||||
Reference in New Issue
Block a user