Add copy/release script

Signed-off-by: Sander Datema <mail@sanderdatema.nl>
This commit is contained in:
Sander Datema 2023-07-28 08:00:07 +02:00
parent 6314db0d7d
commit a7f44c52f3
Signed by: Sander
SSH key fingerprint: SHA256:Wt0vBy/c+0PaIYPGALOnv6o1olOr4sB41w+DzGr/Zw8
2 changed files with 19 additions and 0 deletions

11
copy.sh Executable file
View file

@ -0,0 +1,11 @@
echo Copying X-KeyPad profile
cp "/Users/sander/X-Plane 12/Aircraft/ToLissA319_V1p8p1/X-KeyPad-SD_a319_StdDef.json" "./X-KeyPad/X-KeyPad-SD_a319_StdDef.json"
echo Copying to non-std version
cp "./X-KeyPad/X-KeyPad-SD_a319_StdDef.json" "./X-KeyPad/X-KeyPad-SD_a319.json"
echo Zip Stream Deck Plus profile
rm ./Stream\ Deck/A319\ Flight\ Deck\ Plus.streamDeckProfile
7z a -tzip ./Stream\ Deck/A319\ Flight\ Deck\ Plus.streamDeckProfile ~/Library/Application\ Support/com.elgato.StreamDeck/ProfilesV2/C4F8C103-FD34-43C3-858A-AD82481D4E5C.sdProfile
echo Zip Stream Deck profile
rm ./Stream\ Deck/A319\ Flight\ Deck\ XL.streamDeckProfile
7z a -tzip ./Stream\ Deck/A319\ Flight\ Deck\ XL.streamDeckProfile ~/Library/Application\ Support/com.elgato.StreamDeck/ProfilesV2/1A1525C9-35CB-4FD9-ACB9-05E683BC5460.sdProfile

8
release.sh Executable file
View file

@ -0,0 +1,8 @@
echo Create release
TARGET="ToLiss A319 v$1"
rm -rf "release/$TARGET"
mkdir -p "release/$TARGET"
cp -R ./Stream\ Deck "release/$TARGET/"
cp -R ./X-KeyPad "release/$TARGET/"
cp ./README.md "release/$TARGET/"
7z a -tzip "release/$TARGET.zip" "./release/$TARGET/*"