aboutsummaryrefslogtreecommitdiff
path: root/doc/Development/Updater.asciidoc
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-10-03 16:48:26 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-10-03 16:48:26 +0200
commitae2a713f26fd58f397aaf93242f24c85dee98a2b (patch)
treedb69c96f6419e011cfc1c6e6081613d7a0f0d7cc /doc/Development/Updater.asciidoc
parentSubwindow: only keep tab history for restore tab action (diff)
downloadsmolbote-ae2a713f26fd58f397aaf93242f24c85dee98a2b.tar.xz
Convert documentation into asciidoc from markdown
Diffstat (limited to 'doc/Development/Updater.asciidoc')
-rw-r--r--doc/Development/Updater.asciidoc25
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/Development/Updater.asciidoc b/doc/Development/Updater.asciidoc
new file mode 100644
index 0000000..a039318
--- /dev/null
+++ b/doc/Development/Updater.asciidoc
@@ -0,0 +1,25 @@
+== Updater
+
+=== Creating manifest
+[code, sh]
+----
+find windows/ -type f | xargs sha512sum | sed 's/windows\///' > windows-sha512.txt
+find windows/ -type d -exec chmod 755 {} +
+----
+
+=== Building
+
+You can build for the current system using:
+[code, sh]
+----
+go build
+# remove debug information
+strip updater
+----
+
+You can also cross-compile for other systems by setting GOOS and GOARCH. For a
+list of supported platforms, use `go tool dist list`.
+[code, sh]
+----
+GOOS=windows GOARCH=amd64 go build
+----