Skip to content

Commit

Permalink
Added addon build script
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteHamster committed May 9, 2019
1 parent 377b05f commit 48cac95
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
Binary file removed ankiAddon/drawingPad.jar
Binary file not shown.
23 changes: 23 additions & 0 deletions build-addon.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

rm -r out
mkdir out
javac $(find src -name "*.java") -d out
mkdir out/META-INF
echo "Manifest-Version: 1.0
Implementation-Title: DrawingPad
Implementation-Vendor: ByteHamster
Permissions: sandbox
JavaFX-Version: 8.0
Class-Path:
Main-Class: com.bytehamster.drawingpad.Main
" > out/META-INF/MANIFEST.MF
cd out
jar cmf META-INF/MANIFEST.MF drawingPad.jar *
mkdir addon
cp ../ankiAddon/* addon
cp drawingPad.jar addon/drawingPad.jar
cd addon
zip -q ../drawingPad.ankiaddon *

echo "Created out/drawingPad.ankiaddon"

0 comments on commit 48cac95

Please sign in to comment.