|
|
@@ -1,5 +1,7 @@
|
|
|
|
|
|
|
|
|
+version=v0.8.0-rc
|
|
|
+
|
|
|
nodejs_zip_url="https://nodejs.org/dist/v8.11.3/node-v8.11.3-win-x64.zip"
|
|
|
|
|
|
portable_python_url="http://elvis.rowan.edu/mirrors/portablepython/v2.7/PortablePython_2.7.6.1.exe"
|
|
|
@@ -8,6 +10,8 @@ igraph_whl_url="https://github.com/AToMPM/atompm/releases/download/v0.7.0/python
|
|
|
|
|
|
chrome_url="https://newcontinuum.dl.sourceforge.net/project/portableapps/Google%20Chrome%20Portable/GoogleChromePortable_67.0.3396.87_online.paf.exe"
|
|
|
|
|
|
+manual_url="https://media.readthedocs.org/pdf/atompm/latest/atompm.pdf"
|
|
|
+
|
|
|
#echo $nodejs_zip_url
|
|
|
#echo $portable_python_url
|
|
|
#echo $igraph_whl_url
|
|
|
@@ -93,12 +97,18 @@ function get_chrome() {
|
|
|
}
|
|
|
|
|
|
# 4. Add AToMPM files
|
|
|
-# a. Don't add all node_modules
|
|
|
-# i. Use npm ls --prod --parseable --depth=10 to determine the modules needed
|
|
|
-
|
|
|
function add_atompm () {
|
|
|
|
|
|
echo "Adding AToMPM"
|
|
|
+
|
|
|
+ rm -rf atompm-portable/atompm
|
|
|
+ cd atompm-portable
|
|
|
+ git clone https://github.com/AToMPM/atompm.git
|
|
|
+ cd atompm
|
|
|
+ git checkout $version
|
|
|
+ rm -rf .git
|
|
|
+
|
|
|
+ npm install --production
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -106,11 +116,17 @@ function add_atompm () {
|
|
|
|
|
|
function add_batch_scripts (){
|
|
|
echo "Adding batch scripts"
|
|
|
+ cp windows_scripts/*.bat atompm-portable/
|
|
|
}
|
|
|
# 6. Add manual
|
|
|
|
|
|
function add_manual(){
|
|
|
echo "Adding manual"
|
|
|
+ manual_filename="atompm-userguide.pdf"
|
|
|
+
|
|
|
+ curl $manual_url -o $manual_filename
|
|
|
+ cp $manual_filename atompm-portable/
|
|
|
+ rm $manual_filename
|
|
|
}
|
|
|
|
|
|
###MAIN######
|
|
|
@@ -126,6 +142,9 @@ if [ ! -d ./atompm-portable/platform/GoogleChromePortable ]; then
|
|
|
get_chrome
|
|
|
fi
|
|
|
|
|
|
-add_atompm
|
|
|
+#add_atompm
|
|
|
add_batch_scripts
|
|
|
add_manual
|
|
|
+
|
|
|
+rm atompm-portable.zip
|
|
|
+zip -r atompm-portable.zip atompm-portable/
|