Skip to content
This repository was archived by the owner on Jul 24, 2019. It is now read-only.

Commit 017ec0c

Browse files
author
Nick Santos
committedMar 31, 2016
backport 2.1+ installer fixes back to phantomjs 1.9.8 installer
1 parent 0719f5d commit 017ec0c

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed
 

‎README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
phantomjs-prebuilt
1+
phantomjs
22
==================
33

44
An NPM installer for [PhantomJS](http://phantomjs.org/), headless webkit with JS API.
@@ -9,7 +9,7 @@ Building and Installing
99
-----------------------
1010

1111
```shell
12-
npm install phantomjs-prebuilt
12+
npm install phantomjs
1313
```
1414

1515
Or grab the source and
@@ -43,7 +43,7 @@ Below is an example of using this package via node.
4343
```javascript
4444
var path = require('path')
4545
var childProcess = require('child_process')
46-
var phantomjs = require('phantomjs-prebuilt')
46+
var phantomjs = require('phantomjs')
4747
var binPath = phantomjs.path
4848

4949
var childArgs = [
@@ -65,7 +65,7 @@ installed. The patch number is incremented when there is either an installer
6565
update or a patch build of the phantom binary.
6666

6767
Pre-2.0, this package was published to NPM as [phantomjs](https://www.npmjs.com/package/phantomjs).
68-
We changed the name to [phantomjs-prebuilt](https://www.npmjs.com/package/phantomjs-prebuilt) at
68+
We changed the name to [phantomjs](https://www.npmjs.com/package/phantomjs) at
6969
the request of PhantomJS team.
7070

7171
Deciding Where To Get PhantomJS
@@ -83,7 +83,7 @@ Alternatives include `https://bitbucket.org/ariya/phantomjs/downloads` (the offi
8383
and `http://cnpmjs.org/downloads`.
8484

8585
```Shell
86-
npm install phantomjs-prebuilt --phantomjs_cdnurl=https://bitbucket.org/ariya/phantomjs/downloads
86+
npm install phantomjs --phantomjs_cdnurl=https://bitbucket.org/ariya/phantomjs/downloads
8787
```
8888

8989
Or add property into your `.npmrc` file (https://www.npmjs.org/doc/files/npmrc.html)

‎install.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var url = require('url')
2020
var which = require('which')
2121

2222
var originalPath = process.env.PATH
23-
var DEFAULT_CDN = 'https://github.com/Medium/phantomjs/releases/download/v2.1.1/'
23+
var DEFAULT_CDN = 'https://github.com/Medium/phantomjs/releases/download/v1.9.19'
2424

2525
// If the process exits without going through exit(), then we did not complete.
2626
var validExit = false
@@ -62,7 +62,7 @@ kew.resolve(true)
6262
})
6363
.then(function () {
6464
var location = getTargetPlatform() === 'win32' ?
65-
path.join(pkgPath, 'bin', 'phantomjs.exe') :
65+
path.join(pkgPath, 'phantomjs.exe') :
6666
path.join(pkgPath, 'bin' ,'phantomjs')
6767

6868
try {
@@ -437,16 +437,16 @@ function getDownloadSpec() {
437437
var arch = getTargetArch()
438438
if (platform === 'linux' && arch === 'x64') {
439439
downloadUrl += 'linux-x86_64.tar.bz2'
440-
checksum = '86dd9a4bf4aee45f1a84c9f61cf1947c1d6dce9b9e8d2a907105da7852460d2f'
440+
checksum = 'a1d9628118e270f26c4ddd1d7f3502a93b48ede334b8585d11c1c3ae7bc7163a'
441441
} else if (platform === 'linux' && arch == 'ia32') {
442442
downloadUrl += 'linux-i686.tar.bz2'
443-
checksum = '80e03cfeb22cc4dfe4e73b68ab81c9fdd7c78968cfd5358e6af33960464f15e3'
443+
checksum = '4102450bb658157e9aef3e229828fade0aaa0de0663802b31a0edff4b5aedf85'
444444
} else if (platform === 'darwin' || platform === 'openbsd' || platform === 'freebsd') {
445445
downloadUrl += 'macosx.zip'
446-
checksum = '538cf488219ab27e309eafc629e2bcee9976990fe90b1ec334f541779150f8c1'
446+
checksum = '8f15043ae3031815dc5f884ea6ffa053d365491b1bc0dc3a0862d5ff1ac20a48'
447447
} else if (platform === 'win32') {
448448
downloadUrl += 'windows.zip'
449-
checksum = 'd9fb05623d6b26d3654d008eab3adafd1f6350433dfd16138c46161f42c7dcc8'
449+
checksum = 'da36853ece7d58b6f50813d3e598d8a16bb191b467ac32e1624a239a49de9104'
450450
} else {
451451
return null
452452
}

‎lib/phantomjs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ try {
2828
* The version of phantomjs installed by this package.
2929
* @type {number}
3030
*/
31-
exports.version = '2.1.1'
31+
exports.version = '1.9.8'
3232

3333

3434
/**

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "phantomjs-prebuilt",
3-
"version": "2.1.7",
2+
"name": "phantomjs",
3+
"version": "1.9.20",
44
"keywords": [
55
"phantomjs",
66
"headless",

0 commit comments

Comments
 (0)
This repository has been archived.