1

updating scripts

This commit is contained in:
Alex Yatskov 2017-04-11 20:45:10 -07:00
parent d16f2f48f2
commit 064fc74d78
2 changed files with 3 additions and 21 deletions

3
build_mingw.sh Normal file
View File

@ -0,0 +1,3 @@
export CXX=x86_64-w64-mingw32-g++.exe
export CC=x86_64-w64-mingw32-gcc.exe
go build -ldflags="-H windowsgui"

View File

@ -1,21 +0,0 @@
#!/bin/sh
gox -os="linux windows darwin" -arch="386"
mkdir -p yomichan-import_windows/bin/windows
mv yomichan-import_windows_386.exe yomichan-import_windows/yomichan-import.exe
cp yomichan-import.bat yomichan-import_windows
cp bin/windows/* yomichan-import_windows/bin/windows/
7za a yomichan-import_windows.zip yomichan-import_windows
rm -rf yomichan-import_windows
mkdir -p yomichan-import_linux/bin/linux
mv yomichan-import_linux_386 yomichan-import_linux/yomichan-import
cp bin/linux/* yomichan-import_linux/bin/linux/
tar czvf yomichan-import_linux.tar.gz yomichan-import_linux
rm -rf yomichan-import_linux
mkdir -p yomichan-import_darwin/bin/darwin
mv yomichan-import_darwin_386 yomichan-import_darwin/yomichan-import
cp bin/darwin/* yomichan-import_darwin/bin/darwin/
tar czvf yomichan-import_darwin.tar.gz yomichan-import_darwin
rm -rf yomichan-import_darwin