Skip to content
This repository was archived by the owner on May 19, 2020. It is now read-only.

Commit 39ac51a

Browse files
committed
Fix visible version
1 parent 180fce2 commit 39ac51a

File tree

3 files changed

+52
-36
lines changed

3 files changed

+52
-36
lines changed

build/tasks/patch-code.coffee

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,21 @@ module.exports = (grunt) ->
3939
pathFile 'atom.patch', 'src/atom.coffee', ->
4040
pathFile 'main.patch', 'src/browser/main.coffee', ->
4141
pathFile 'auto-update-manager.patch', 'src/browser/auto-update-manager.coffee', ->
42-
pathFile 'atom-window.patch', 'src/browser/atom-window.coffee', ->
43-
pathFile 'workspace.patch', 'src/workspace.coffee', ->
44-
pathFile 'Gruntfile.patch', 'build/Gruntfile.coffee', ->
45-
pathFile 'codesign-task.patch', 'build/tasks/codesign-task.coffee', ->
46-
pathFile 'publish-build-task.patch', 'build/tasks/publish-build-task.coffee', ->
47-
pathFile 'set-version-task.patch', 'build/tasks/set-version-task.coffee', ->
48-
pathFile 'set-version.patch', 'script/set-version', ->
49-
if process.platform is 'darwin'
50-
pathFile 'atom-Info.patch', 'resources/mac/atom-Info.plist', ->
51-
pathFile 'darwin.patch', 'menus/darwin.cson', ->
42+
pathFile 'application-menu.patch', 'src/browser/application-menu.coffee', ->
43+
pathFile 'atom-window.patch', 'src/browser/atom-window.coffee', ->
44+
pathFile 'workspace.patch', 'src/workspace.coffee', ->
45+
pathFile 'Gruntfile.patch', 'build/Gruntfile.coffee', ->
46+
pathFile 'codesign-task.patch', 'build/tasks/codesign-task.coffee', ->
47+
pathFile 'publish-build-task.patch', 'build/tasks/publish-build-task.coffee', ->
48+
pathFile 'set-version-task.patch', 'build/tasks/set-version-task.coffee', ->
49+
pathFile 'set-version.patch', 'script/set-version', ->
50+
if process.platform is 'darwin'
51+
pathFile 'atom-Info.patch', 'resources/mac/atom-Info.plist', ->
52+
pathFile 'darwin.patch', 'menus/darwin.cson', ->
53+
done()
54+
else if process.platform is 'win32'
55+
pathFile 'win32.patch', 'menus/win32.cson', ->
56+
done()
57+
else
58+
pathFile 'linux.patch', 'menus/linux.cson', ->
5259
done()
53-
else if process.platform is 'win32'
54-
pathFile 'win32.patch', 'menus/win32.cson', ->
55-
done()
56-
else
57-
pathFile 'linux.patch', 'menus/linux.cson', ->
58-
done()
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- application-menu.coffee.orig 2015-09-22 05:48:42.000000000 -0700
2+
+++ application-menu.coffee 2015-09-23 06:13:34.000000000 -0700
3+
@@ -118,7 +118,7 @@
4+
# Returns an Array of menu item Objects.
5+
getDefaultTemplate: ->
6+
[
7+
- label: "Atom"
8+
+ label: "Particle Dev"
9+
submenu: [
10+
{label: "Check for Update", metadata: {autoUpdate: true}}
11+
{label: 'Reload', accelerator: 'Command+R', click: => @focusedWindow()?.reload()}
Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
--- atom-application.coffee.orig 2015-07-20 13:25:42.000000000 +0100
2-
+++ atom-application.coffee 2015-07-20 13:37:47.000000000 +0100
3-
@@ -19,9 +19,9 @@
1+
--- atom-application.coffee.orig 2015-09-22 05:48:42.000000000 -0700
2+
+++ atom-application.coffee 2015-09-23 06:21:04.000000000 -0700
3+
@@ -21,9 +21,9 @@
44

55
DefaultSocketPath =
66
if process.platform is 'win32'
@@ -12,35 +12,39 @@
1212

1313
# The application's singleton class.
1414
#
15-
@@ -73,9 +73,10 @@
16-
@pidsToOpenWindows = {}
17-
@pathsToOpen ?= []
18-
@windows = []
19-
+ @particleDevVersion = '#{particleDevVersion}'
20-
21-
- @autoUpdateManager = new AutoUpdateManager(@version, options.test)
22-
- @applicationMenu = new ApplicationMenu(@version, @autoUpdateManager)
23-
+ @autoUpdateManager = new AutoUpdateManager(@particleDevVersion, options.test)
24-
+ @applicationMenu = new ApplicationMenu(@particleDevVersion, @autoUpdateManager)
25-
@atomProtocolHandler = new AtomProtocolHandler(@resourcePath, @safeMode)
26-
27-
@listenForArgumentsFromNewProcess()
28-
@@ -177,13 +178,13 @@
15+
@@ -175,13 +175,13 @@
2916
atomWindow ?= @focusedWindow()
3017
atomWindow?.browserWindow.inspectElement(x, y)
3118

3219
- @on 'application:open-documentation', -> shell.openExternal('https://atom.io/docs/latest/?app')
3320
- @on 'application:open-discussions', -> shell.openExternal('https://discuss.atom.io')
34-
+ @on 'application:open-documentation', -> shell.openExternal('http://docs.particle.io/photon/dev/')
21+
+ @on 'application:open-documentation', -> shell.openExternal('https://docs.particle.io/guide/tools-and-features/dev/')
3522
+ @on 'application:open-discussions', -> shell.openExternal('https://community.particle.io/')
3623
@on 'application:open-roadmap', -> shell.openExternal('https://atom.io/roadmap?app')
3724
@on 'application:open-faq', -> shell.openExternal('https://atom.io/faq')
3825
- @on 'application:open-terms-of-use', -> shell.openExternal('https://atom.io/terms')
3926
- @on 'application:report-issue', -> shell.openExternal('https://github.com/atom/atom/blob/master/CONTRIBUTING.md#submitting-issues')
4027
- @on 'application:search-issues', -> shell.openExternal('https://github.com/issues?q=+is%3Aissue+user%3Aatom')
4128
+ @on 'application:open-terms-of-use', -> shell.openExternal('https://www.particle.io/tos')
42-
+ @on 'application:report-issue', -> shell.openExternal('https://github.com/spark/spark-dev/issues/new')
43-
+ @on 'application:search-issues', -> shell.openExternal('https://github.com/spark/spark-dev/issues')
29+
+ @on 'application:report-issue', -> shell.openExternal('https://github.com/spark/particle-dev-app/issues/new')
30+
+ @on 'application:search-issues', -> shell.openExternal('https://github.com/spark/particle-dev-app/issues')
4431

4532
@on 'application:install-update', =>
4633
@quitting = true
34+
@@ -202,11 +202,11 @@
35+
36+
@openPathOnEvent('application:about', 'atom://about')
37+
@openPathOnEvent('application:show-settings', 'atom://config')
38+
- @openPathOnEvent('application:open-your-config', 'atom://.atom/config')
39+
- @openPathOnEvent('application:open-your-init-script', 'atom://.atom/init-script')
40+
- @openPathOnEvent('application:open-your-keymap', 'atom://.atom/keymap')
41+
- @openPathOnEvent('application:open-your-snippets', 'atom://.atom/snippets')
42+
- @openPathOnEvent('application:open-your-stylesheet', 'atom://.atom/stylesheet')
43+
+ @openPathOnEvent('application:open-your-config', 'atom://.particledev/config')
44+
+ @openPathOnEvent('application:open-your-init-script', 'atom://.particledev/init-script')
45+
+ @openPathOnEvent('application:open-your-keymap', 'atom://.particledev/keymap')
46+
+ @openPathOnEvent('application:open-your-snippets', 'atom://.particledev/snippets')
47+
+ @openPathOnEvent('application:open-your-stylesheet', 'atom://.particledev/stylesheet')
48+
@openPathOnEvent('application:open-license', path.join(process.resourcesPath, 'LICENSE.md'))
49+
50+
app.on 'before-quit', =>

0 commit comments

Comments
 (0)