Browse Source

Build scripts package

master
Rei 1 year 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 @@
.history

# End of https://www.gitignore.io/api/go,linux,visualstudiocode

achromata
*.zip
*.tar.gz

+ 10
- 0
build.sh View File

@@ -0,0 +1,10 @@
#!/bin/bash

go build eventide.space/secretsanta

rm -r achromata
mkdir achromata

mv secretsanta achromata/achromata

cp -r res achromata/res

BIN
secretsanta View File


+ 11
- 1
winbuild.sh View File

@@ -2,4 +2,14 @@

# Use this script cross-compile from linux to windows

CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ GOOS=windows CGO_ENABLED=1 go build eventide.space/secretsanta
CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ GOOS=windows CGO_ENABLED=1 go build eventide.space/secretsanta

rm -r achromata
mkdir achromata

mv secretsanta.exe achromata/achromata.exe

cp -r res achromata/res

rm achromata.zip
zip -r achromata.zip achromata

Loading…
Cancel
Save