1

Update build scripts

This commit is contained in:
Alex Yatskov 2021-01-10 17:38:03 -08:00
parent e50a31cc05
commit 83e3e44f46
2 changed files with 8 additions and 7 deletions

View File

@ -1,12 +1,13 @@
#!/bin/bash
mkdir -p dst
mkdir -p yomichan-import
go build github.com/FooSoft/yomichan-import/yomichan
go build github.com/FooSoft/yomichan-import/yomichan-gtk
mkdir yomichan-import
mv yomichan yomichan-import
mv yomichan-gtk yomichan-import
7za a yomichan-import_linux.7z yomichan-import
tar czvf dst/yomichan-import_linux.tar.gz yomichan-import
rm -rf yomichan-import

View File

@ -1,15 +1,15 @@
#!/bin/bash
mkdir -p dst
mkdir -p yomichan-import
export CXX=x86_64-w64-mingw32-g++.exe
export CC=x86_64-w64-mingw32-gcc.exe
go build github.com/FooSoft/yomichan-import/yomichan
go build -ldflags="-H windowsgui" github.com/FooSoft/yomichan-import/yomichan-gtk
mkdir yomichan-import
mv yomichan.exe yomichan-import
mv yomichan-gtk.exe yomichan-import
7za a yomichan-import_windows.7z yomichan-import
7za a yomichan-import_windows.zip yomichan-import
rm -rf yomichan-import