-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(client/linux): generate Debian package #2255
Changes from all commits
bc6a90d
2d24c95
6ad4a69
224bcc9
87d8b80
113af60
815bf8a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# Copyright 2024 The Outline Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# Dependencies: | ||
# - libcap2-bin: setcap | ||
|
||
set -eux | ||
|
||
# Grant specific capabilities so Outline can run without root permisssion | ||
# - cap_net_admin: configure network interfaces, set up routing tables, etc. | ||
# - cap_dac_override: modify network configuration files owned by root | ||
/usr/sbin/setcap cap_net_admin,cap_dac_override+eip /opt/Outline/Outline |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
"output": "output/client/electron/build" | ||
}, | ||
"extraMetadata": { | ||
"name": "outline-client", | ||
"main": "output/client/electron/index.js" | ||
}, | ||
"files": [ | ||
|
@@ -15,21 +16,35 @@ | |
"output/client/electron", | ||
"!output/client/electron/build" | ||
], | ||
|
||
"deb": { | ||
"depends": [ | ||
"gconf2", "gconf-service", "libnotify4", "libappindicator1", "libxtst6", "libnss3", | ||
"libcap2-bin" | ||
], | ||
"afterInstall": "client/electron/debian/after_install.sh" | ||
}, | ||
"linux": { | ||
"category": "Network", | ||
"executableName": "Outline", | ||
"files": [ | ||
"client/electron/linux_proxy_controller/dist", | ||
"client/electron/icons/png", | ||
"client/output/build/linux" | ||
], | ||
"icon": "client/electron/icons/png", | ||
"target": { | ||
"maintainer": "Jigsaw LLC", | ||
"target": [{ | ||
"arch": [ | ||
"x64" | ||
], | ||
"target": "AppImage" | ||
} | ||
}, { | ||
"arch": "x64", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we support arm as well? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can, we also need to update Go compiler arguments for |
||
"target": "deb" | ||
}] | ||
}, | ||
|
||
"nsis": { | ||
"include": "client/electron/custom_install_steps.nsh", | ||
"perMachine": true | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are electron required dependencies: https://www.electron.build/app-builder-lib.interface.deboptions#depends
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add them as comments to the file? Ugh, it's JSON...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, JSON is bad.
How about adding the fieldNo, electron will complain about unknown fields."_depends_comment": "there are electron required deps"
?