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
ec657a73
Commit
ec657a73
authored
Jul 31, 2014
by
Mithgol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
32bit Linux builds for node-webkit similar to `build_against_node.sh`
parent
7cd59761
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
build_against_node_webkit.sh
scripts/build_against_node_webkit.sh
+10
-3
No files found.
scripts/build_against_node_webkit.sh
View file @
ec657a73
...
...
@@ -32,6 +32,8 @@ if [[ $(uname -s) == 'Darwin' ]]; then
export
PATH
=
$(
pwd
)
/node-webkit.app/Contents/MacOS/:
${
PATH
}
# v0.10.0-rc1 unzips with extra folder
export
PATH
=
$(
pwd
)
/
${
NW_DOWNLOAD
}
/node-webkit.app/Contents/MacOS/:
${
PATH
}
npm install
--build-from-source
${
GYP_ARGS
}
else
# Linux
export
NW_DOWNLOAD
=
node-webkit-v
${
NODE_WEBKIT
}
-linux-
${
TARGET_ARCH
}
...
...
@@ -42,7 +44,10 @@ else
tar
xf
${
NW_DOWNLOAD
}
.tar.gz
export
PATH
=
$(
pwd
)
/
${
NW_DOWNLOAD
}
:
${
PATH
}
if
[[
'${TARGET_ARCH}'
==
'ia32'
]]
;
then
# prepare packages on 32-bit Linux
# prepare packages for 32-bit builds on Linux
sudo
apt-get
-y
install gcc-multilib
sudo
apt-get
-y
install g++-multilib
# prepare packages for 32-bit node-webkit on Linux
sudo
apt-get
-y
install libx11-6:i386
sudo
apt-get
-y
install libxtst6:i386
sudo
apt-get
-y
install libcap2:i386
...
...
@@ -66,11 +71,13 @@ else
sudo
apt-get
-y
install libudev0:i386
# also use ldd to find out if some necessary apt-get is missing
ldd
$(
pwd
)
/
${
NW_DOWNLOAD
}
/nw
CC
=
gcc-4.6
CXX
=
g++-4.6 npm install
--build-from-source
${
GYP_ARGS
}
else
npm install
--build-from-source
${
GYP_ARGS
}
fi
fi
npm install
--build-from-source
${
GYP_ARGS
}
# test the package
node-pre-gyp package testpackage
${
GYP_ARGS
}
...
...
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