From 7d34d9f915006fbdcd78b1aa25493319b8c44021 Mon Sep 17 00:00:00 2001 From: Tau Date: Thu, 7 Nov 2019 18:18:14 -0500 Subject: [PATCH] Add initial distribution packaging script --- .gitignore | 1 + mkdist | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100755 mkdist diff --git a/.gitignore b/.gitignore index d4483e7..f638bc5 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ # Suggested names for build dirs _build32/ _build64/ +_zip/ # External dependencies subprojects/capnhook diff --git a/mkdist b/mkdist new file mode 100755 index 0000000..e596848 --- /dev/null +++ b/mkdist @@ -0,0 +1,34 @@ +#!/bin/sh + +set -e + +mkdir -p _zip/chuni/DEVICE + +cp _build32/subprojects/capnhook/inject/inject.exe \ + _build32/aimeio/aimeio.dll \ + _build32/chuniio/chuniio.dll \ + _build32/chunihook/chunihook.dll \ + dist/chuni/segatools.ini \ + dist/chuni/start.bat \ + _zip/chuni/ + +cp pki/billing.pub \ + pki/ca.crt \ + _zip/chuni/DEVICE + +mkdir -p _zip/idz/DEVICE + +cp _build64/subprojects/capnhook/inject/inject.exe \ + _build64/aimeio/aimeio.dll \ + _build64/idzio/idzio.dll \ + _build64/idzhook/idzhook.dll \ + dist/idz/segatools.ini \ + dist/idz/start.bat \ + _zip/idz/ + +cp pki/billing.pub \ + pki/ca.crt \ + _zip/idz/DEVICE + +strip _zip/{chuni,idz}/*.{exe,dll} +