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
de47bbed
Commit
de47bbed
authored
7 years ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
[fix]
#1046
Update builds from TypeScript sources + modules back in core
parent
da0e2690
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
release/arch/arm/build-arm.sh
+4
-1
4 additions, 1 deletion
release/arch/arm/build-arm.sh
release/arch/debian/build-deb.sh
+6
-2
6 additions, 2 deletions
release/arch/debian/build-deb.sh
release/arch/windows/build.bat
+9
-13
9 additions, 13 deletions
release/arch/windows/build.bat
with
19 additions
and
16 deletions
release/arch/arm/build-arm.sh
+
4
−
1
View file @
de47bbed
...
...
@@ -61,7 +61,10 @@ echo "Copying Nodejs"
cp
-R
"
$DOWNLOADS
/node-
${
NVER
}
-linux-
${
ARCH
}
"
node
echo
"npm install"
node/bin/npm
install
--production
node/bin/npm
install
node/bin/npm
install
duniter-ui@1.4.x
sed
-i
"s/duniter
\/
/..
\/
..
\/
..
\/
..
\/
/g"
node_modules/duniter-ui/server/controller/webmin.js
node/bin/npm prune
--production
SRC
=
`
pwd
`
echo
$SRC
...
...
This diff is collapsed.
Click to expand it.
release/arch/debian/build-deb.sh
+
6
−
2
View file @
de47bbed
...
...
@@ -75,11 +75,15 @@ cd ${RELEASES}/duniter
# Remove git files
rm
-Rf
.git
[[
$?
-eq
0
]]
&&
echo
">> VM: building modules..."
[[
$?
-eq
0
]]
&&
yarn
--production
[[
$?
-eq
0
]]
&&
yarn
#[[ $? -eq 0 ]] && echo ">> VM: running tests..."
#[[ $? -eq 0 ]] && yarn test
[[
$?
-eq
0
]]
&&
node
-e
"const deps = require('./package.json').peerDependencies; Object.keys(deps).forEach(k => console.log(k +
\"
@
\"
+ deps[k]))"
| xargs yarn add
--production
# Duniter UI
[[
$?
-eq
0
]]
&&
yarn add duniter-ui@1.4.x
[[
$?
-eq
0
]]
&&
sed
-i
"s/duniter
\/
/..
\/
..
\/
..
\/
..
\/
/g"
node_modules/duniter-ui/server/controller/webmin.js
[[
$?
-eq
0
]]
&&
npm prune
--production
# Specific modules that are not needed in a release
...
...
This diff is collapsed.
Click to expand it.
release/arch/windows/build.bat
+
9
−
13
View file @
de47bbed
set
DUNITER_BRANCH
=
1
.
3
.x
set
DUNITER_BRANCH
=
1
.
4
.x
set
VER_UI
=
%DUNITER_BRANCH%
set
VER_BMA
=
%DUNITER_BRANCH%
set
VER_CRAWLER
=
%DUNITER_BRANCH%
set
VER_KEYPAIR
=
%DUNITER_BRANCH%
set
ADDON_VERSION
=
48
set
NW_VERSION
=
0
.17.6
...
...
@@ -46,18 +43,17 @@ echo %DUNITER_TAG%
git
checkout
%DUNITER_TAG%
call
npm
cache
clean
call
npm
install
--production
call
npm
install
REM call npm test
echo
"Ajout du module 1/1 (duniter-ui)..."
call
npm
install
duniter
-ui
@
%VER_UI%
--save --production
REM sed -i "s/duniter\//..\/..\/..\/..\//g" node_modules/duniter-ui/server/controller/webmin.js
cd
node_modules
\duniter
-ui
\server\controller\
powershell
-Command
"(Get-Content webmin.js) | foreach-object {$_ -replace 'duniter/','../../../../' } | Set-Content webmin.js2"
move
/y
webmin
.js2
webmin
.js
cd
..\..\..\..
echo
"Retrait des modules 'dev'..."
call
npm
prune
--production
echo
"Ajout du module 1/4..."
call
npm
install
duniter
-bma
@
%VER_BMA%
--save --production
echo
"Ajout du module 2/4..."
call
npm
install
duniter
-crawler
@
%VER_CRAWLER%
--save --production
echo
"Ajout du module 3/4..."
call
npm
install
duniter
-keypair
@
%VER_KEYPAIR%
--save --production
echo
"Ajout du module 4/4..."
call
npm
install
duniter
-ui
@
%VER_UI%
--save --production
REM echo ">> VM: installing peerDependencies installer..."
REM call npm i --save-dev @team-griffin/install-self-peers
...
...
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