Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
etherpad-lite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
runcon
etherpad-lite
Commits
bd2372de
Commit
bd2372de
authored
9 years ago
by
Stefan
Browse files
Options
Downloads
Patches
Plain Diff
Update windows build:
- Update node to version 4.4.0 - Create temp folder dynamically
parent
a3188cf3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/buildForWindows.sh
+10
-11
10 additions, 11 deletions
bin/buildForWindows.sh
with
10 additions
and
11 deletions
bin/buildForWindows.sh
+
10
−
11
View file @
bd2372de
#!/bin/sh
NODE_VERSION
=
"
0.12.2
"
NODE_VERSION
=
"
4.4.0
"
#Move to the folder where ep-lite is installed
cd
`
dirname
$0
`
...
...
@@ -29,11 +29,11 @@ hash unzip > /dev/null 2>&1 || {
}
START_FOLDER
=
$(
pwd
)
;
TMP_FOLDER
=
$(
mktemp
-d
)
echo
"create a clean environment in /tmp/etherpad-lite-win..."
rm
-rf
/tmp/etherpad-lite-win
cp
-ar
.
/tmp/etherpad-lite-win
cd
/tmp/etherpad-lite-win
echo
"create a clean environment in
$TMP_FOLDER
..."
cp
-ar
.
$TMP_FOLDER
cd
$TMP_FOLDER
rm
-rf
node_modules
rm
-f
etherpad-lite-win.zip
...
...
@@ -50,21 +50,20 @@ mv node_modules_resolved node_modules
echo
"download windows node..."
cd
bin
wget
"http://nodejs.org/dist/v
$NODE_VERSION
/node.exe"
-O
../node.exe
wget
"http
s
://nodejs.org/dist/v
$NODE_VERSION
/
win-x86/
node.exe"
-O
../node.exe
echo
"remove git history to reduce folder size"
rm
-rf
.git/objects
echo
"remove windows jsdom-nocontextify/test folder"
rm
-rf
/tmp/etherpad-lite-win
/src/node_modules/wd/node_modules/request/node_modules/form-data/node_modules/combined-stream/test
rm
-rf
/tmp/etherpad-lite-win
/src/node_modules/nodemailer/node_modules/mailcomposer/node_modules/mimelib/node_modules/encoding/node_modules/iconv-lite/encodings/tables
rm
-rf
$TMP_FOLDER
/src/node_modules/wd/node_modules/request/node_modules/form-data/node_modules/combined-stream/test
rm
-rf
$TMP_FOLDER
/src/node_modules/nodemailer/node_modules/mailcomposer/node_modules/mimelib/node_modules/encoding/node_modules/iconv-lite/encodings/tables
echo
"create the zip..."
cd
/tmp
zip
-9
-r
etherpad-lite-win.zip etherpad-lite-win
mv
etherpad-lite-win.zip
$START_FOLDER
zip
-9
-r
$START_FOLDER
/etherpad-lite-win.zip
$TMP_FOLDER
echo
"clean up..."
rm
-rf
/tmp/etherpad-lite-win
rm
-rf
$TMP_FOLDER
echo
"Finished. You can find the zip in the Etherpad root folder, it's called etherpad-lite-win.zip"
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