1

Windows scripts

This commit is contained in:
Alex Yatskov 2021-01-10 17:28:27 -08:00
parent 5bc88dcaee
commit 09f42f3345
5 changed files with 30 additions and 6 deletions

2
go.mod
View File

@ -4,7 +4,7 @@ go 1.15
require (
github.com/FooSoft/jmdict v0.0.0-20190926045629-808d66c7b050
github.com/FooSoft/zero-epwing-go v0.0.0-20210110063657-4e432fa54539
github.com/FooSoft/zero-epwing-go v0.0.0-20210111010306-2b31c3d779e3
github.com/andlabs/ui v0.0.0-20200610043537-70a69d6ae31e
github.com/mattn/go-sqlite3 v1.14.6
)

4
go.sum
View File

@ -1,7 +1,7 @@
github.com/FooSoft/jmdict v0.0.0-20190926045629-808d66c7b050 h1:3VWk8B61jEgfcV+pEgzWO1j7TVXC9g5QaS0J06994Zc=
github.com/FooSoft/jmdict v0.0.0-20190926045629-808d66c7b050/go.mod h1:zo92ezZlNld5cN1iuS0QRAmSsHcpvcqGZLVNKPM4Hlg=
github.com/FooSoft/zero-epwing-go v0.0.0-20210110063657-4e432fa54539 h1:gQkr1jXwLOHMvYc7OHQOTN8/m5NyeFWCpfwKanNNtFs=
github.com/FooSoft/zero-epwing-go v0.0.0-20210110063657-4e432fa54539/go.mod h1:HbHFbLqiZe/xWwz7j0zPrHQ6CvJA3IM71yeB7ncL5ss=
github.com/FooSoft/zero-epwing-go v0.0.0-20210111010306-2b31c3d779e3 h1:cJAbqN6kihWyUi45bkThmpmHGqX0n3BxYgzHq7o0as8=
github.com/FooSoft/zero-epwing-go v0.0.0-20210111010306-2b31c3d779e3/go.mod h1:HbHFbLqiZe/xWwz7j0zPrHQ6CvJA3IM71yeB7ncL5ss=
github.com/andlabs/ui v0.0.0-20200610043537-70a69d6ae31e h1:wSQCJiig/QkoUnpvelSPbLiZNWvh2yMqQTQvIQqSUkU=
github.com/andlabs/ui v0.0.0-20200610043537-70a69d6ae31e/go.mod h1:5G2EjwzgZUPnnReoKvPWVneT8APYbyKkihDVAHUi0II=
github.com/mattn/go-sqlite3 v1.14.6 h1:dNPt6NO46WmLVt2DLNpwczCmdV5boIZ6g/tlDrlRUbg=

12
scripts/build_linux.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
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
rm -rf yomichan-import

15
scripts/build_windows.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
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
rm -rf yomichan-import

View File

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