Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sqlite3
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
node-sqlite3
Commits
57389d8f
Commit
57389d8f
authored
Jan 14, 2014
by
Dane Springmeyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanups
parent
fe69599b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
64 deletions
+0
-64
.gitignore
.gitignore
+0
-4
binary_name.js
lib/binary_name.js
+0
-60
No files found.
.gitignore
View file @
57389d8f
.lock-wscript
*.dylib
*.so
*.o
*.lo
*.Makefile
*.target.gyp.mk
stage
lib/binding
build
out
...
...
@@ -18,6 +16,5 @@ gyp-mac-tool
.dirstamp
npm-debug.log
test/support/big.db
lib/node_sqlite3.node
test/tmp
.DS_Store
\ No newline at end of file
lib/binary_name.js
deleted
100644 → 0
View file @
fe69599b
var
path
=
require
(
'path'
);
var
Binary
=
function
(
options
)
{
var
options
=
options
||
{};
var
package_json
=
options
.
package_json
||
require
(
'../package.json'
);
this
.
name
=
options
.
name
||
'binding'
;
this
.
configuration
=
options
.
configuration
||
'Release'
;
this
.
uri
=
options
.
uri
||
'http://'
+
this
.
name
+
'.s3.amazonaws.com/'
;
this
.
module_maj_min
=
package_json
.
version
.
split
(
'.'
).
slice
(
0
,
2
).
join
(
'.'
);
this
.
module_abi
=
package_json
.
abi
;
this
.
platform
=
options
.
platform
||
process
.
platform
;
this
.
target_arch
=
options
.
target_arch
||
process
.
arch
;
if
(
process
.
versions
.
modules
)
{
// added in >= v0.10.4 and v0.11.7
// https://github.com/joyent/node/commit/ccabd4a6fa8a6eb79d29bc3bbe9fe2b6531c2d8e
this
.
node_abi
=
'node-v'
+
(
+
process
.
versions
.
modules
);
}
else
{
this
.
node_abi
=
'v8-'
+
process
.
versions
.
v8
.
split
(
'.'
).
slice
(
0
,
2
).
join
(
'.'
);
}
}
Binary
.
prototype
.
filename
=
function
()
{
return
this
.
name
+
'.node'
;
}
Binary
.
prototype
.
compression
=
function
()
{
return
'.tar.gz'
;
}
Binary
.
prototype
.
getBasePath
=
function
()
{
return
this
.
node_abi
+
'-'
+
this
.
platform
+
'-'
+
this
.
target_arch
;
}
Binary
.
prototype
.
getRequirePath
=
function
(
configuration
)
{
return
'./'
+
path
.
join
(
'binding'
,
configuration
||
this
.
configuration
,
this
.
getBasePath
(),
this
.
filename
());
}
Binary
.
prototype
.
getModuleAbi
=
function
()
{
return
this
.
name
+
'-v'
+
this
.
module_maj_min
+
'.'
+
this
.
module_abi
;
}
Binary
.
prototype
.
getArchivePath
=
function
()
{
return
this
.
getModuleAbi
()
+
'-'
+
this
.
getBasePath
()
+
this
.
compression
();
}
Binary
.
prototype
.
getRemotePath
=
function
()
{
return
this
.
uri
+
this
.
configuration
+
'/'
+
this
.
getArchivePath
();
}
module
.
exports
.
Binary
=
Binary
;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment