Commit Graph

75 Commits

Author SHA1 Message Date
Antonio Scandurra
c52399b043 Update policy filename for RPM spec.in 2019-06-20 15:10:05 +02:00
Antonio Scandurra
6dcc0f1f74 Use a different polkit policy name for each Atom channel on Linux
Using the same name would generate an exception when trying to install 
more than one version of Atom at the same time.
2019-06-20 14:29:23 +02:00
Rafael Oleza
f5926fe8f1 Create folder before copying polkit policy file on redhat 2019-05-28 13:03:07 +02:00
Antonio Scandurra
3b5eb5d247 Add policy to prevent asking password more than once on RPM
See 50f73a5 for more details.

Co-Authored-By: Rafael Oleza <rafeca@github.com>
2019-05-28 11:59:29 +02:00
Antonio Scandurra
949e53e7f6 Require policykit in RPM distribution
Co-Authored-By: Rafael Oleza <rafeca@github.com>
2019-05-28 11:58:55 +02:00
Antonio Scandurra
50f73a57b7 Add policy to prevent asking password more than once on Debian
This is a polkit policy that is read when fs-admin invokes `dd` via
`pkexec` after trying to write into a restricted location. By specifying
`auth_admin_keep`, we are telling the polkit daemon to not prompt users
for a password again if they have already escalated privileges recently.

Co-Authored-By: Rafael Oleza <rafeca@github.com>
2019-05-28 11:53:21 +02:00
Antonio Scandurra
1e87055f6d Require policykit in debian distribution
This is used by fs-admin to invoke `pkexec` and escalate privileges to
write into restricted locations.

Co-Authored-By: Rafael Oleza <rafeca@github.com>
2019-05-28 11:53:14 +02:00
Landon Abney
3945fd8646 🔥 Remove libcap2
This was added at the request of a user in #7066 with no reasoning 
behind it as far as I can tell. Since the current Atom binary doesn't 
depend on this library it should be removed.
2019-05-17 11:01:41 -07:00
Landon Abney
120b916fd9 🔥 Remove libudev dependency
This is another dependency that came from the old WebUpd8 package in 
f431bb6, however this one doesn't seem like it was necessary in the 
first place, or if it wass the `atom` binary no longer requires it.
2019-05-17 10:58:46 -07:00
Landon Abney
fc679a3646 🐛 Replace gconf2 with libgconf-2-4
The `gconf2` and `gconf-service` dependencies originally were added in 
f431bb6 from the WebUpd8 version of the Atom .deb file. It looks like 
although they seemed to work for the most part, they were likely 
incorrect originally, and certainly are now.

This commit switches these over to the `libgconf-2-4 | libgconf2-4` 
dependency listed in electron-installer-debian and Chrome.
2019-05-17 10:55:39 -07:00
Rafael Oleza
1a1468b61f Calculate env vars when launching Atom from the desktop 2019-04-11 17:11:07 +02:00
David Wilson
812dcc4bf9 Add libcurl3 and libcurl4 as deps for .deb package 2018-10-25 11:40:33 -07:00
shadow-light
f21dc17769 Fix atom.desktop for some Linux systems
For some linux systems the window manager does not associate atom.desktop with Atom processes unless the class name is in lowercase. See #16791
2018-09-29 21:43:19 +10:00
Ray Foss
42a6d490aa .Desktop SCL compat by setting exec path
based on this zombie PR:
https://github.com/atom/atom/pull/15887
2018-06-13 08:52:22 -05:00
Landon Abney
e86136ffc5 Update to require libgtk-3-0
The new version of Chromium included with Electron 2.0 requires a newer
version of `libgtk` to be installed on the system to run.
2018-05-17 11:23:53 -07:00
David Wilson
2756c65a21 Merge pull request #16812 from atom/ungb-deb-dependency
Add additional dependencies for linux
2018-03-05 10:12:14 -08:00
Bryant Ung
c76bdbe704 Add versions to linux deps 2018-02-22 14:51:54 -08:00
Bryant Ung
deec0dc6b1 Add additional deb dependencies 2018-02-21 11:02:18 -08:00
Evpok Padding
28635194ca 🐧 add StartupWMClass to .desktop for window-app association 2018-02-20 09:55:42 +01:00
Michelle Tilley
241d758083 ⌨️ 2017-04-27 15:05:15 -07:00
Michelle Tilley
9a4234f49f Add libsecret to RedHat deps 2017-04-27 15:05:03 -07:00
Michelle Tilley
0c32fcc573 Update builds to include libsecret 2017-04-20 09:37:21 -07:00
Bryant Ung
c061f36040 Updating requires for linux to support 32bit build 2017-02-17 10:39:53 -08:00
Antonio Scandurra
f8dffa33c9 Install only the 64 bit version of libXss.so.1 2017-01-09 16:05:15 +01:00
Antonio Scandurra
dddd523b4e Revert "Merge pull request #13421 from philwyett-hemi/rpm_dev"
This reverts commit 86e34d96a9.
2017-01-09 15:55:49 +01:00
Phil Wyett
af4da948e9 Commit...
* Correct requires for libXss across Fedora/RedHat (and derivatives) and SUSE.
2016-12-10 15:14:24 +00:00
Antonio Scandurra
4c5d93adec Replace libXScrnSaver with libXss.so.1 2016-12-05 14:50:26 +01:00
Antonio Scandurra
da864a8f18 Add libXScrnSaver dependency to the RPM package spec 2016-11-21 19:04:14 +01:00
Antonio Scandurra
5b85e1c797 Allow script/build --install on all platforms 2016-08-30 12:21:55 +02:00
Antonio Scandurra
08dcb39f87 Start on RPM package creation 2016-08-15 16:00:33 +02:00
Antonio Scandurra
9e0d7638e4 Create Debian package 2016-08-15 12:05:50 +02:00
Jonathan Mast
a8cb423b68 🐧 Use %F instead of %U for file variable
The desktop entry specification states that %U is for URLs and %F is for
files. Since atom doesn't support URLs, we should use %F. Fixes #2320.
2016-03-26 10:15:11 -04:00
Max Brunsfeld
3c48af049d Name files correctly for beta in debian and rpm packages 2015-09-23 17:33:00 -07:00
Max Brunsfeld
c918a44eb0 Configure icons based on --channel option to build task
On CI, set that option to 'beta', 'stable' or 'dev' based on the branch
2015-09-16 16:32:30 -07:00
Machisté N. Quintana
9d70aec316 Only use lsb-core instead of full lsb suite 2015-06-07 10:49:25 -04:00
Wliu
1fad4bae47 Add libcap2 as a dependency for Debian
Closes #7066
2015-06-02 19:29:02 -04:00
Machisté N. Quintana
2031e3dfde Use lsb virtual package instead of hard require 2015-05-28 09:12:49 -04:00
Machiste Quintana
f919bc40dc Add lsb_release as Linux dependency 2015-05-21 08:35:01 -04:00
a-moses
9b20239b9a add comtable to debian testing and ubuntu 14.04
* libgcrypt11-dev  on debian is a dammy file "shortcut" to libgcrypt20 . so to make possible to install atom on debian testing version  we should  add on depends ** libgcrypt20.

libgcrypt20 has  backward compatibility to libgcrypt11 .

** libgcrypt20 is comfortable  with  debian unstable/testing ,  and ubuntu 14.04TLS  .

* libgcrypt11 (without -dev) not exists on debian testing and makeing  bugs with atom deb file .
2015-02-18 00:51:47 +02:00
Ethan Estrada
5f2b5c3781 Only copy icons to build location
Linux icons are now only copied for build process, not for install
process. They should be ignored for all platforms except RPM package
build on Linux.
2015-02-06 01:06:28 -07:00
Ethan Estrada
3a971a5a1a Move linux icons back to their original location 2015-02-06 01:02:37 -07:00
Ethan Estrada
fc5a22a783 Pick up icons from icon path in RPM package build 2015-02-04 12:55:59 -07:00
Ethan Estrada
25f490484b Move sized icons so they get picked up at buildtime 2015-02-04 12:45:30 -07:00
Ethan Estrada
08edcf23c9 Let Linux packages fully determine executable path
It is no longer hard coded into the atom.desktop.in file; the
individual grunt tasks now determine how the executable is accessed.
2015-02-04 11:06:20 -07:00
Ethan Estrada
449acc7ced Reverted atom.desktop.in
I realize the debian package build depends on this. Although it
probably won't break anything, I would rather implement a solution
that doesn't change the behavior of the debian installer.
2015-02-04 10:01:47 -07:00
Ethan Estrada
afb795d8cc mkrpm honors the '--install-dir' option of grunt
Also, atom.spec now uses the description provided by grunt instead
of hardcoding its own description.
2015-02-03 22:43:18 -07:00
Ethan Estrada
ef8a493b9a Remove some hardcoded paths from atom.spec.in
Also, fix a couple lines in atom.spec.in that either weren't
really doing anything or were inconsistent with the rest of the
script.
2015-02-03 22:03:49 -07:00
Ethan Estrada
c738145dc7 Revert "Fixes RPM install path and icon location"
This reverts commit b92e6f5a2d.
2015-02-03 21:37:14 -07:00
simurai
740e6de5f3 Add Linux icons 2015-02-03 12:47:30 +09:00
Ethan Estrada
223334181b Place atom.png icons in standard system locations
This is so that the atom.desktop file will be able to find the
"atom" icon when requested. This adds the dependency of ImageMagick
to convert atom.png to varying resolutions, although, only during
the rpm build process (not during actual install). So the result
is ultimatly no different for the end user.

Also, fixed an absolute path from the rpm build process and made
it relative. It was hardcoded in the spec file to
"/tmp/atom-build/Atom/*", so builds that were made elsewhere would
have broken when attempting to package into an rpm. Now rpm packaging
should work from a build made anywhere. Also needed to modify
script/mkrpm so that it copies the build files in such a way that
they can more easily be dealt with in the spec file in a relative
way.
2015-01-31 22:14:07 -07:00