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
843d7768
Commit
843d7768
authored
Jul 29, 2014
by
Mithgol the Webmaster
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make a matrix of TARGET_ARCH, build on Linux 32-bit for node-webkit
parent
6008fa08
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
46 deletions
+45
-46
.travis.yml
.travis.yml
+11
-2
build_against_node_webkit.sh
scripts/build_against_node_webkit.sh
+34
-44
No files found.
.travis.yml
View file @
843d7768
...
@@ -10,12 +10,21 @@ env:
...
@@ -10,12 +10,21 @@ env:
-
NODE_VERSION="0.8"
-
NODE_VERSION="0.8"
-
NODE_VERSION="0.10"
-
NODE_VERSION="0.10"
-
NODE_VERSION="0.11"
-
NODE_VERSION="0.11"
-
NODE_WEBKIT="0.8.6"
-
NODE_WEBKIT="0.8.6" TARGET_ARCH="ia32"
-
NODE_WEBKIT="0.10.0"
-
NODE_WEBKIT="0.8.6" TARGET_ARCH="x64"
-
NODE_WEBKIT="0.10.0" TARGET_ARCH="ia32"
-
NODE_WEBKIT="0.10.0" TARGET_ARCH="x64"
global
:
global
:
-
secure
:
QhuP5E/kYL1j1KDkHGJtk6DSJr1RH4DR/JrC62Viuf5Du8jE+i0kPWfF2MxtuEmKo35orhpu8t8mzKygWfuO63WPuuIE9qd/+V/y99Lqcj0tEN6wJ5RnywktbTJWg23zphjhmYq3Xj8DLVEikCZBwHtlbygkO9Q60cn1PK+bnPg=
-
secure
:
QhuP5E/kYL1j1KDkHGJtk6DSJr1RH4DR/JrC62Viuf5Du8jE+i0kPWfF2MxtuEmKo35orhpu8t8mzKygWfuO63WPuuIE9qd/+V/y99Lqcj0tEN6wJ5RnywktbTJWg23zphjhmYq3Xj8DLVEikCZBwHtlbygkO9Q60cn1PK+bnPg=
-
secure
:
HxCS2dQAWI0KmCFnFNNZoucG4FeAW+itG7+Hp0dNtwmxZzGOZYFO2bZcGvTAMNfVN++oqLxTebYQI1oB5yUl5mPJjrjthaGS6Zq3S6rfJcXiv+icYgEXlR6ejQ97dsHw1Jeg8nedCQlI4kHfvG6pgBLhq9hnugxH1Cjhdt14E9U=
-
secure
:
HxCS2dQAWI0KmCFnFNNZoucG4FeAW+itG7+Hp0dNtwmxZzGOZYFO2bZcGvTAMNfVN++oqLxTebYQI1oB5yUl5mPJjrjthaGS6Zq3S6rfJcXiv+icYgEXlR6ejQ97dsHw1Jeg8nedCQlI4kHfvG6pgBLhq9hnugxH1Cjhdt14E9U=
matrix
:
allow_failures
:
-
env
:
NODE_WEBKIT="0.8.6" TARGET_ARCH="x64"
os
:
osx
-
env
:
NODE_WEBKIT="0.10.0" TARGET_ARCH="x64"
os
:
osx
before_install
:
before_install
:
# check if tag exists and matches package.json
# check if tag exists and matches package.json
-
scripts/validate_tag.sh
-
scripts/validate_tag.sh
...
...
scripts/build_against_node_webkit.sh
View file @
843d7768
...
@@ -17,26 +17,56 @@ npm install nw-gyp
...
@@ -17,26 +17,56 @@ npm install nw-gyp
OLD_PATH
=
"
$PATH
"
OLD_PATH
=
"
$PATH
"
GYP_ARGS
=
"--runtime=node-webkit --target=
$
NODE_WEBKIT
"
GYP_ARGS
=
"--runtime=node-webkit --target=
$
{
NODE_WEBKIT
}
--target_arch=
${
TARGET_ARCH
}
"
if
[[
$(
uname
-s
)
==
'Darwin'
]]
;
then
if
[[
$(
uname
-s
)
==
'Darwin'
]]
;
then
GYP_ARGS
=
"
${
GYP_ARGS
}
--target_arch=ia32"
if
[[
'${TARGET_ARCH}'
==
'x64'
]]
;
then
# do not build on Mac OS X x64 until node-webkit 0.10.1 is released
false
fi
fi
fi
if
[[
$(
uname
-s
)
==
'Darwin'
]]
;
then
if
[[
$(
uname
-s
)
==
'Darwin'
]]
;
then
export
NW_DOWNLOAD
=
node-webkit-v
${
NODE_WEBKIT
}
-osx-
ia32
export
NW_DOWNLOAD
=
node-webkit-v
${
NODE_WEBKIT
}
-osx-
${
TARGET_ARCH
}
wget http://dl.node-webkit.org/v
${
NODE_WEBKIT
}
/
${
NW_DOWNLOAD
}
.zip
wget http://dl.node-webkit.org/v
${
NODE_WEBKIT
}
/
${
NW_DOWNLOAD
}
.zip
unzip
-q
${
NW_DOWNLOAD
}
.zip
unzip
-q
${
NW_DOWNLOAD
}
.zip
export
PATH
=
$(
pwd
)
/node-webkit.app/Contents/MacOS/:
${
PATH
}
export
PATH
=
$(
pwd
)
/node-webkit.app/Contents/MacOS/:
${
PATH
}
# v0.10.0-rc1 unzips with extra folder
# v0.10.0-rc1 unzips with extra folder
export
PATH
=
$(
pwd
)
/
${
NW_DOWNLOAD
}
/node-webkit.app/Contents/MacOS/:
${
PATH
}
export
PATH
=
$(
pwd
)
/
${
NW_DOWNLOAD
}
/node-webkit.app/Contents/MacOS/:
${
PATH
}
else
else
export
NW_DOWNLOAD
=
node-webkit-v
${
NODE_WEBKIT
}
-linux-x64
# Linux
export
NW_DOWNLOAD
=
node-webkit-v
${
NODE_WEBKIT
}
-linux-
${
TARGET_ARCH
}
# for testing node-webkit, launch a virtual display
# for testing node-webkit, launch a virtual display
export
DISPLAY
=
:99.0
export
DISPLAY
=
:99.0
sh
-e
/etc/init.d/xvfb start +extension RANDR
sh
-e
/etc/init.d/xvfb start +extension RANDR
wget http://dl.node-webkit.org/v
${
NODE_WEBKIT
}
/
${
NW_DOWNLOAD
}
.tar.gz
wget http://dl.node-webkit.org/v
${
NODE_WEBKIT
}
/
${
NW_DOWNLOAD
}
.tar.gz
tar
xf
${
NW_DOWNLOAD
}
.tar.gz
tar
xf
${
NW_DOWNLOAD
}
.tar.gz
export
PATH
=
$(
pwd
)
/
${
NW_DOWNLOAD
}
:
${
PATH
}
export
PATH
=
$(
pwd
)
/
${
NW_DOWNLOAD
}
:
${
PATH
}
if
[[
'${TARGET_ARCH}'
==
'ia32'
]]
;
then
# prepare packages on 32-bit Linux
sudo
apt-get
-y
install libx11-6:i386
sudo
apt-get
-y
install libxtst6:i386
sudo
apt-get
-y
install libcap2:i386
sudo
apt-get
-y
install libglib2.0-0:i386
sudo
apt-get
-y
install libgtk2.0-0:i386
sudo
apt-get
-y
install libatk1.0-0:i386
sudo
apt-get
-y
install libgdk-pixbuf2.0-0:i386
sudo
apt-get
-y
install libcairo2:i386
sudo
apt-get
-y
install libfreetype6:i386
sudo
apt-get
-y
install libfontconfig1:i386
sudo
apt-get
-y
install libxcomposite1:i386
sudo
apt-get
-y
install libasound2:i386
sudo
apt-get
-y
install libxdamage1:i386
sudo
apt-get
-y
install libxext6:i386
sudo
apt-get
-y
install libxfixes3:i386
sudo
apt-get
-y
install libnss3:i386
sudo
apt-get
-y
install libnspr4:i386
sudo
apt-get
-y
install libgconf-2-4:i386
sudo
apt-get
-y
install libexpat1:i386
sudo
apt-get
-y
install libdbus-1-3:i386
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
fi
fi
fi
npm install
--build-from-source
${
GYP_ARGS
}
npm install
--build-from-source
${
GYP_ARGS
}
...
@@ -61,42 +91,3 @@ fi
...
@@ -61,42 +91,3 @@ fi
# restore PATH
# restore PATH
export
PATH
=
"
$OLD_PATH
"
export
PATH
=
"
$OLD_PATH
"
rm
-rf
${
NW_DOWNLOAD
}
rm
-rf
${
NW_DOWNLOAD
}
# TODO linux 32 bit
:
'
# rebuild node-sqlite3 for 32 bit node-webkit target (if NODE_WEBKIT is not empty)
node-pre-gyp rebuild ${GYP_ARGS}
# on Linux 32 bit: install 32 bit stuff necessary for node-webkit 32 bit
sudo apt-get -y install libx11-6:i386
sudo apt-get -y install libxtst6:i386
sudo apt-get -y install libcap2:i386
sudo apt-get -y install libglib2.0-0:i386
sudo apt-get -y install libgtk2.0-0:i386
sudo apt-get -y install libatk1.0-0:i386
sudo apt-get -y install libgdk-pixbuf2.0-0:i386
sudo apt-get -y install libcairo2:i386
sudo apt-get -y install libfreetype6:i386
sudo apt-get -y install libfontconfig1:i386
sudo apt-get -y install libxcomposite1:i386
sudo apt-get -y install libasound2:i386
sudo apt-get -y install libxdamage1:i386
sudo apt-get -y install libxext6:i386
sudo apt-get -y install libxfixes3:i386
sudo apt-get -y install libnss3:i386
sudo apt-get -y install libnspr4:i386
sudo apt-get -y install libgconf-2-4:i386
sudo apt-get -y install libexpat1:i386
sudo apt-get -y install libdbus-1-3:i386
sudo apt-get -y install libudev0:i386
# on Linux 32 bit: download and unpack node-webkit, add it to PATH
wget http://dl.node-webkit.org/v${NODE_WEBKIT}/node-webkit-v${NODE_WEBKIT}-linux-ia32.tar.gz
tar xf node-webkit-v${NODE_WEBKIT}-linux-ia32.tar.gz
OLD_PATH="$PATH";
export PATH=$(pwd)/node-webkit-v${NODE_WEBKIT}-linux-ia32:$PATH
# on Linux 32 bit: ldd nw
ldd $(pwd)/node-webkit-v${NODE_WEBKIT}-linux-ia32/nw
# attempt node-pre-gyp package testpackage (if NODE_WEBKIT is not empty)
node-pre-gyp package testpackage publish ${GYP_ARGS}
# on Linux 32 bit: erase used node-webkit, restore PATH
export PATH="$OLD_PATH"; rm -rf node-webkit-v${NODE_WEBKIT}-linux-ia32
'
\ 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