forked from FooSoft/yomichan-import
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up actions and add windows release builds
* Fix build scripts * Update workflow * Update workflow versions * Fix build architectures * Add cxx and ldflags * Fix cc target * Add zlib package * Add correct zlib package * Fix gitignore * Fix script formatting * Rearrange action <rikaitan.link>ZmU2MDhhYjM1YTgzZTNmZTNlYzAyOWZjNmM0MTFmNmNlN2UwYjA5NQo=</rikaitan.link>
- Loading branch information
Showing
4 changed files
with
35 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
yomichan-gtk/yomichan-gtk* | ||
yomichan/yomichan* | ||
build | ||
|
||
rikaitan-import-linux | ||
rikaitan-import-windows | ||
|
||
rikaitan-import-linux.zip | ||
rikaitan-import-windows.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
#!/bin/bash | ||
|
||
mkdir -p dst | ||
mkdir -p rikaitan-import | ||
build_dir="rikaitan-import-linux" | ||
mkdir -p "$build_dir" | ||
|
||
go build github.com/Ajatt-Tools/rikaitan-import/tree/master/yomichan | ||
go build github.com/Ajatt-Tools/rikaitan-import/tree/master/yomichan-gtk | ||
go build -o "rikaitan-import-linux" ./rikaitan | ||
go build -o "rikaitan-import-linux" ./rikaitan-gtk | ||
|
||
mv rikaitan rikaitan-import | ||
mv rikaitan-gtk rikaitan-import | ||
|
||
tar czvf dst/rikaitan-import_linux.tar.gz rikaitan-import | ||
|
||
rm -rf rikaitan-import | ||
zip -r "$build_dir.zip" "$build_dir" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
#!/bin/bash | ||
|
||
mkdir -p dst | ||
mkdir -p yomichan-import | ||
build_dir="rikaitan-import-windows" | ||
mkdir -p "$build_dir" | ||
|
||
export CXX=x86_64-w64-mingw32-g++.exe | ||
export CC=x86_64-w64-mingw32-gcc.exe | ||
go build foosoft.net/projects/yomichan-import/yomichan | ||
go build -ldflags="-H windowsgui" foosoft.net/projects/yomichan-import/yomichan-gtk | ||
CGO_ENABLED=1 CC=/usr/bin/x86_64-w64-mingw32-gcc CXX=/usr/bin/x86_64-w64-mingw32-g++ GOOS=windows OARCH=amd64 go build -o "rikaitan-import-windows" -ldflags '-extldflags "-static"' ./rikaitan | ||
CGO_ENABLED=1 CC=/usr/bin/x86_64-w64-mingw32-gcc CXX=/usr/bin/x86_64-w64-mingw32-g++ GOOS=windows OARCH=amd64 go build -o "rikaitan-import-windows" -ldflags '-extldflags "-static"' ./rikaitan-gtk | ||
|
||
mv yomichan.exe yomichan-import | ||
mv yomichan-gtk.exe yomichan-import | ||
|
||
7za a yomichan-import_windows.zip yomichan-import | ||
|
||
rm -rf yomichan-import | ||
zip -r "$build_dir.zip" "$build_dir" |