]> jfr.im git - irc/kvirc/kvirc-scripts.git/commitdiff
Add a sample packaging script
authorSzymon Tomasz Stefanek <redacted>
Mon, 14 Sep 2015 23:10:40 +0000 (01:10 +0200)
committerSzymon Tomasz Stefanek <redacted>
Mon, 14 Sep 2015 23:10:40 +0000 (01:10 +0200)
pack-one.kvs [new file with mode: 0644]

diff --git a/pack-one.kvs b/pack-one.kvs
new file mode 100644 (file)
index 0000000..ad3493f
--- /dev/null
@@ -0,0 +1,28 @@
+# Pack a single addon
+
+%szAddonName = "Autoaway"
+%szAddonVersion = "2.0.0"
+%szDescription = "This addon makes you enter away state automatically after a certain period of inactivity. You can configure it via /autoaway::configure"
+%szAuthor = "Szymon Tomasz Stefanek"
+%szMinKVIrcVersion = "4.3.2"
+%szIcon = "autoaway_32.png"
+%szPath = "autoaway"
+
+
+################################################################################################
+
+%dir = $file.extractPath($0)
+
+%szOutPath = %dir/%szAddonName-%szAddonVersion.kva
+       
+addon.pack \
+               %szOutPath \
+               %szAddonName \
+               %szAddonVersion \
+               %szDescription \
+               %szAuthor \
+               %szMinKVIrcVersion \
+               %szIcon \
+               %dir/%szPath
+       
+echo "Package is ready at" %szOutPath "("$file.size(%szOutPath) "bytes)"