on master help sign in
remove extra binaries and correct package filenames
2069d64Brian Hicks
installers/npm/PUBLISHING.md+15−11
@@ -9,32 +9,36 @@ You can find a list of what binaries we'll need to tar up in `index.js`.
9For example:
9For example:
10
10
11```javascript
11```javascript
12+var root =
12−var root = "https://github.com/elm-lang/elm-platform/releases/download/" + binVersion + "-exp/elm-platform";
13+ "https://github.com/elm/compiler/releases/download/" +
14+ binVersion +
15+ "/binaries-for-";
13
16
14module.exports = binwrap({
17module.exports = binwrap({
15− binaries: ["elm", "elm-make", "elm-repl", "elm-reactor", "elm-package"],
18+ binaries: ["elm"],
16 urls: {
19 urls: {
17− "darwin-x64": root + "-macos.tar.gz",
20+ "darwin-x64": root + "mac.tar.gz",
18− "win32-x64": root + "-windows.tar.gz",
21+ "win32-x64": root + "windows.tar.gz",
19− "win32-ia32": root + "-windows.tar.gz",
22+ "win32-ia32": root + "windows.tar.gz",
20− "linux-x64": root + "-linux-64bit.tar.gz"
23+ "linux-x64": root + "linux.tar.gz"
21 }
24 }
22});
25});
23```
26```
24
27
25If this is the end of your `index.js`, you'll need to create these files:
28If this is the end of your `index.js`, you'll need to create these files:
26
29
27−1. `elm-platform-macos.tar.gz`
30+1. `binaries-for-mac.tar.gz`
28−2. `elm-platform-windows.tar.gz`
31+2. `binaries-for-windows.tar.gz`
29−3. `elm-platform-linux-64bit.tar.gz`
32+3. `binaries-for-linux.tar.gz`
30
33
31−Each of these tarballs should have **only binaries** inside them - no directories!
34+Each of these tarballs should have **only the Elm binary** inside them - no
35+directories!
32
36
33So create them by making a directory, putting all the binaries in it, `cd`-ing
37So create them by making a directory, putting all the binaries in it, `cd`-ing
34into that directory, and then running something like this:
38into that directory, and then running something like this:
35
39
36```shell
40```shell
37−$ tar cvzf elm-platform-linux-64bit.tar.gz *
41+$ tar cvzf binaries-for-linux.tar.gz elm
38```
42```
39
43
40Make sure each tarball contains all the binaries listed in that `binaries:` list
44Make sure each tarball contains all the binaries listed in that `binaries:` list