Skip to content

Commit 85c09ff

Browse files
committed
Created more of a turnkey scripting method to create bundles. Windows is still screwed up and requires manual intervention.
1 parent c986fe5 commit 85c09ff

File tree

6 files changed

+65
-0
lines changed

6 files changed

+65
-0
lines changed

coder-apps/bundle_mac.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/bash
2+
3+
##
4+
## Creates the bundle for the Mac
5+
##
6+
## sh bundle-mac.sh base_path
7+
##
8+
## Eg.
9+
## sh bundle-mac.sh ../coder-base/
10+
11+
if [ $# != 1 ]
12+
then
13+
echo -e "\nUse:\nbundle-mac.sh coderbase\n"
14+
exit
15+
fi
16+
17+
base=$1
18+
19+
mkdir -p $base
20+
21+
## Copy the startup script to the base folder
22+
cp ../coderdojo/scripts/run-coder.sh $base
23+
24+
## Expand NodeJS bundle and install it in the base folder.
25+
mkdir -p ./tmp
26+
cp ../coderdojo/nodejs/node-mac.tar.gz ./tmp
27+
cd ./tmp
28+
gunzip node-mac.tar.gz
29+
tar -xvf node-mac.tar
30+
cd ..
31+
mkdir -p $base/node
32+
cp -R ./tmp/nodejs/* $base/node
33+
rm -fr ./tmp
34+
35+
## do the rest of the installation process
36+
./install_all.sh $base
37+
cd $base
38+
39+

coder-apps/bundle_win.cmd

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
@echo off
2+
if =%1-==-- echo "Usage: bundle_win.cmd [coderbase]" & exit /b
3+
4+
set base=%1
5+
6+
REM Create base folder
7+
IF NOT EXIST %base% (
8+
mkdir %base%
9+
)
10+
11+
mkdir %base%
12+
copy scripts\run-coder.cmd %base%
13+
14+
mkdir %base%\node
15+
copy node\node.exe %base%\node
16+
17+
call install_all.cmd %base%
18+
19+
cd %base%

coderdojo/nodejs/node-mac.tar.gz

4.26 MB
Binary file not shown.

coderdojo/nodejs/node.exe

5.52 MB
Binary file not shown.

coderdojo/scripts/run-coder.cmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@echo off
2+
echo "Open your browser to the address shown below."
3+
node\node localserver.js

coderdojo/scripts/run-coder.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
echo "Open your browser to the address shown below."
4+
node/bin/node localserver.js

0 commit comments

Comments
 (0)