Browse Source

Build scripts package

master
Rei 8 months ago
parent
commit
1f54883baf
4 changed files with 25 additions and 1 deletions
  1. 4
    0
      .gitignore
  2. 10
    0
      build.sh
  3. BIN
      secretsanta
  4. 11
    1
      winbuild.sh

+ 4
- 0
.gitignore View File

@@ -47,3 +47,7 @@
47 47
 .history
48 48
 
49 49
 # End of https://www.gitignore.io/api/go,linux,visualstudiocode
50
+
51
+achromata
52
+*.zip
53
+*.tar.gz

+ 10
- 0
build.sh View File

@@ -0,0 +1,10 @@
1
+#!/bin/bash
2
+
3
+go build eventide.space/secretsanta
4
+
5
+rm -r achromata
6
+mkdir achromata
7
+
8
+mv secretsanta achromata/achromata
9
+
10
+cp -r res achromata/res

BIN
secretsanta View File


+ 11
- 1
winbuild.sh View File

@@ -2,4 +2,14 @@
2 2
 
3 3
 # Use this script cross-compile from linux to windows
4 4
 
5
-CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ GOOS=windows CGO_ENABLED=1 go build eventide.space/secretsanta
5
+CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ GOOS=windows CGO_ENABLED=1 go build eventide.space/secretsanta
6
+
7
+rm -r achromata
8
+mkdir achromata
9
+
10
+mv secretsanta.exe achromata/achromata.exe
11
+
12
+cp -r res achromata/res
13
+
14
+rm achromata.zip
15
+zip -r achromata.zip achromata

Loading…
Cancel
Save