summaryrefslogtreecommitdiff
path: root/development/atom/use-system-electron.patch
blob: cc97e04a65b9e884f87beff07f3456cc27f6200c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
diff -Naur a/script/build b/script/build
--- a/script/build	2017-02-17 10:53:06.000000000 -0600
+++ b/script/build	2017-02-22 23:35:29.241396450 -0600
@@ -23,7 +23,6 @@
   .wrap(yargs.terminalWidth())
   .argv
 
-const checkChromedriverVersion = require('./lib/check-chromedriver-version')
 const cleanOutputDirectory = require('./lib/clean-output-directory')
 const codeSignOnMac = require('./lib/code-sign-on-mac')
 const compressArtifacts = require('./lib/compress-artifacts')
@@ -48,7 +47,6 @@
   process.exit(1)
 })
 
-checkChromedriverVersion()
 cleanOutputDirectory()
 copyAssets()
 transpileBabelPaths()
@@ -60,46 +58,3 @@
 generateMetadata()
 generateAPIDocs()
 dumpSymbols()
-  .then(packageApplication)
-  .then(packagedAppPath => {
-    if (process.platform === 'darwin') {
-      if (argv.codeSign) {
-        codeSignOnMac(packagedAppPath)
-      } else {
-        console.log('Skipping code-signing. Specify the --code-sign option to perform code-signing'.gray)
-      }
-    } else if (process.platform === 'win32') {
-      if (argv.createWindowsInstaller) {
-        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. Code-signing was skipped too.'.gray)
-      }
-    } else if (process.platform === 'linux') {
-      if (argv.createDebianPackage) {
-        createDebianPackage(packagedAppPath)
-      } else {
-        console.log('Skipping creating debian package. Specify the --create-debian-package option to create it.'.gray)
-      }
-
-      if (argv.createRpmPackage) {
-        createRpmPackage(packagedAppPath)
-      } else {
-        console.log('Skipping creating rpm package. Specify the --create-rpm-package option to create it.'.gray)
-      }
-    }
-
-    return Promise.resolve(packagedAppPath)
-  }).then(packagedAppPath => {
-    if (argv.compressArtifacts) {
-      compressArtifacts(packagedAppPath)
-    } else {
-      console.log('Skipping artifacts compression. Specify the --compress-artifacts option to compress Atom binaries (and symbols on macOS)'.gray)
-    }
-
-    if (argv.install) {
-      installApplication(packagedAppPath)
-    } else {
-      console.log('Skipping installation. Specify the --install option to install Atom'.gray)
-    }
-  })
diff -Naur a/script/package.json b/script/package.json
--- a/script/package.json	2017-02-17 10:53:06.000000000 -0600
+++ b/script/package.json	2017-02-22 23:36:47.888097996 -0600
@@ -8,7 +8,6 @@
     "colors": "1.1.2",
     "csslint": "1.0.2",
     "donna": "1.0.13",
-    "electron-chromedriver": "~1.3",
     "electron-packager": "7.3.0",
     "electron-winstaller": "2.5.1",
     "fs-extra": "0.30.0",
diff -Naur a/src/main-process/atom-application.coffee b/src/main-process/atom-application.coffee
--- a/src/main-process/atom-application.coffee	2017-02-17 10:53:06.000000000 -0600
+++ b/src/main-process/atom-application.coffee	2017-02-22 23:33:19.542590377 -0600
@@ -797,7 +797,7 @@
       @restart()
 
   restart: ->
-    args = []
+    args = ["--app=/usr/share/atom"]
     args.push("--safe") if @safeMode
     args.push("--log-file=#{@logFile}") if @logFile?
     args.push("--socket-path=#{@socketPath}") if @socketPath?
diff -Naur a/src/package-manager.coffee b/src/package-manager.coffee
--- a/src/package-manager.coffee	2017-02-17 10:53:06.000000000 -0600
+++ b/src/package-manager.coffee	2017-02-25 02:23:32.459106058 -0600
@@ -145,7 +145,7 @@
     apmRoot = path.join(process.resourcesPath, 'app', 'apm')
     @apmPath = path.join(apmRoot, 'bin', commandName)
     unless fs.isFileSync(@apmPath)
-      @apmPath = path.join(apmRoot, 'node_modules', 'atom-package-manager', 'bin', commandName)
+      @apmPath = path.join('/usr/share/atom/resources/app/apm', 'node_modules', 'atom-package-manager', 'bin', commandName)
     @apmPath
 
   # Public: Get the paths being used to look for packages.