Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
typescript
duniter
Commits
4537d69e
Commit
4537d69e
authored
9 years ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
Fix: 32 bits & 64 bits releases + add a better disclaimer for installation finshed
parent
e2a080c0
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.travis.yml
+12
-2
12 additions, 2 deletions
.travis.yml
install.sh
+12
-3
12 additions, 3 deletions
install.sh
with
24 additions
and
5 deletions
.travis.yml
+
12
−
2
View file @
4537d69e
...
...
@@ -17,13 +17,21 @@ after_success:
before_deploy
:
# Download & embed Nodejs binary
-
NVER=`node -v`
-
wget http://nodejs.org/dist/${NVER}/node-${NVER}-linux-x86.tar.gz
-
wget http://nodejs.org/dist/${NVER}/node-${NVER}-linux-x64.tar.gz
-
tar xzf node-${NVER}-linux-x86.tar.gz
-
tar xzf node-${NVER}-linux-x64.tar.gz
-
mv node-${NVER}-linux-x64 node
-
rm node-${NVER}-linux-x64.tar.gz
# Clean testing packages
-
npm prune --production
-
tar czf ../ucoin.tar.gz ./ --exclude ".git" --exclude "coverage" --exclude "test" --exclude "share"
-
tar czf ../ucoin.64bits.tar.gz ./ --exclude ".git" --exclude "coverage" --exclude "test" --exclude "share" --exclude "node-${NVER}-linux-x86.tar.gz" --exclude "node-${NVER}-linux-x86"
-
rm -Rf node_modules node
-
node-gyp clean configure build --verbose --arch=ia32
-
npm install --production
-
mv node-${NVER}-linux-x86 node
-
rm node-${NVER}-linux-x86.tar.gz
-
tar czf ../ucoin.32bits.tar.gz ./ --exclude ".git" --exclude "coverage" --exclude "test" --exclude "share"
# Releases deployed on GitHub
deploy
:
...
...
@@ -31,7 +39,9 @@ deploy:
skip_cleanup
:
true
api_key
:
secure
:
feyz5YmzYj6g6ZJKAv7u3pp9j9OY6oL4Pcx8mkha25BT1kEIu7lzvkZu4mJAIDjCxJjEkce3fNGXhRICqoMhRy/FK5dUUTpmP3KoMLNNJboO+MhDqjPEb6OYyafikSWnm0BszPL38FzSYMdmvNZ6WirOyVfrdzVPgU6MG0D99w8=
file
:
../ucoin.tar.gz
file
:
-
../ucoin.32bits.tar.gz
-
../ucoin.64bits.tar.gz
on
:
repo
:
ucoin-io/ucoin
tags
:
true
This diff is collapsed.
Click to expand it.
install.sh
+
12
−
3
View file @
4537d69e
...
...
@@ -91,7 +91,7 @@ install_ucoin_from_git() {
# Download Nodejs
local
NVER
=
"0.12.6"
;
local
ARCH
=
"
32
"
local
ARCH
=
"
86
"
local
X64
=
`
uname
-r
|
grep
"x86_64"
`
if
[
!
-z
X64
]
;
then
ARCH
=
"64"
...
...
@@ -124,8 +124,13 @@ install_ucoin_from_git() {
}
install_ucoin_as_script
()
{
local
ARCH
=
"32"
local
X64
=
`
uname
-r
|
grep
"x86_64"
`
if
[
!
-z
X64
]
;
then
ARCH
=
"64"
fi
local
UCOIN_SOURCE_LOCAL
UCOIN_SOURCE_LOCAL
=
https://github.com/ucoin-io/ucoin/releases/download/
$(
ucoin_latest_version
)
/ucoin.tar.gz
UCOIN_SOURCE_LOCAL
=
https://github.com/ucoin-io/ucoin/releases/download/
$(
ucoin_latest_version
)
/ucoin.
${
ARCH
}
bits.
tar.gz
local
UCOIN_ARCHIVE
UCOIN_ARCHIVE
=
$UCOIN_DIR
/ucoin.tar.gz
...
...
@@ -251,7 +256,11 @@ ucoin_do_install() {
fi
fi
echo
"=> Close and reopen your terminal to start using ucoin"
echo
"=> ------------------------------------------------------"
echo
"=> ! !"
echo
"=> ! CLOSE and REOPEN YOUR TERMINAL to start using ucoin !"
echo
"=> ! !"
echo
"=> ------------------------------------------------------"
ucoin_reset
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment