From f83eecf2e2454b8522dc49872e029fb862984453 Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Sat, 29 Jun 2024 15:28:16 -0400 Subject: [PATCH] script to package zips for installation without internet but with filesystem upload access --- build/package_zip.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 build/package_zip.sh diff --git a/build/package_zip.sh b/build/package_zip.sh new file mode 100755 index 0000000..9288a05 --- /dev/null +++ b/build/package_zip.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# Create zips to attach to GitHub releases. +# These can be extracted onto a computer and will include all files CCMSI would otherwise install. + +tag=$(git describe --tags) +apps=(coordinator pocket reactor-plc rtu supervisor) + +for app in "${apps[@]}" do + mkdir ${tag}_${app} + cp -R $app scada-common graphics lockbox configure.lua initenv.lua startup.lua LICENSE ${tag}_${app} + zip -r ${tag}_${app}.zip ${tag}_${app} + rm -R ${tag}_${app} +done