File tree Expand file tree Collapse file tree 3 files changed +38
-19
lines changed Expand file tree Collapse file tree 3 files changed +38
-19
lines changed Original file line number Diff line number Diff line change 3
3
## Tutorials
4
4
5
5
* [ Quick start] ( tutorial/quick-start.md )
6
+ * [ Application distribution] ( tutorial/application-distribution.md )
6
7
* [ Use native node modules] ( tutorial/use-native-node-modules.md )
7
8
8
9
## Development
Original file line number Diff line number Diff line change
1
+ # Application distribution
2
+
3
+ To distribute your app with atom-shell, you should name the folder of your app
4
+ as ` app ` , and put it under atom-shell's resources directory (on OS X it is
5
+ ` Atom.app/Contents/Resources/ ` , and on Linux and Windows it is ` resources/ ` ),
6
+ like this:
7
+
8
+ On Mac OS X:
9
+
10
+ ``` text
11
+ atom-shell/Atom.app/Contents/Resources/app/
12
+ ├── package.json
13
+ ├── main.js
14
+ └── index.html
15
+ ```
16
+
17
+ On Windows and Linux:
18
+
19
+ ``` text
20
+ atom-shell/resources/app
21
+ ├── package.json
22
+ ├── main.js
23
+ └── index.html
24
+ ```
25
+
26
+ Then execute ` Atom.app ` (or ` atom ` on Linux, and ` atom.exe ` on Window), and
27
+ atom-shell will start as your app. The ` atom-shell ` directory would then be
28
+ your distribution that should be delivered to final users.
29
+
30
+ ## Build with grunt
31
+
32
+ If you build your application with ` grunt ` , then there is a grunt task that can
33
+ download atom-shell for current platform automatically:
34
+ [ grunt-download-atom-shell] ( https://github.com/atom/grunt-download-atom-shell ) .
Original file line number Diff line number Diff line change @@ -124,8 +124,9 @@ Finally the `index.html` is the web page you want to show:
124
124
## Run your app
125
125
126
126
After done writing your app, you could create a distribution of your app by
127
- following next section and then execute the packaged binary, or you can just
128
- use the downloaded atom-shell binary to execute your app.
127
+ following the [ Application distribution] ( ./application-distribution.md ) guide
128
+ and then execute the packaged app, or you can just use the downloaded atom-shell
129
+ binary to execute your app directly.
129
130
130
131
On Window:
131
132
@@ -144,20 +145,3 @@ On Mac OS X:
144
145
``` bash
145
146
$ ./Atom.app/Contents/MacOS/Atom app
146
147
```
147
-
148
- ## Distribute your app
149
-
150
- To distribute your app with atom-shell, you should name the folder of your app
151
- as ` app ` , and put it under atom-shell's resources directory (on OS X it is
152
- ` Atom.app/Contents/Resources/ ` , and on Linux and Windows it is ` resources/ ` ),
153
- like this:
154
-
155
- ``` text
156
- Atom.app/Contents/Resources/app/
157
- ├── package.json
158
- ├── main.js
159
- └── index.html
160
- ```
161
-
162
- Then execute ` Atom.app ` (or ` atom ` on Linux, and ` atom.exe ` on Window), and
163
- atom-shell will start as your app.
You can’t perform that action at this time.
0 commit comments