-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
437 additions
and
41 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,11 +1,11 @@ | ||
ec6674f7b826657c6e76ee4d438d605f ./ua3f-0.3.1-386.tar.gz | ||
17d7d471b509b649faffa30212de67e0 ./ua3f-0.3.1-amd64.tar.gz | ||
e4bc4bb914ef6a4f48aac85be6e761ca ./ua3f-0.3.1-arm.tar.gz | ||
056e2b39ca2f1c3378b75bfa2243e3ba ./ua3f-0.3.1-arm64.tar.gz | ||
f23ec84c3f8dfd1e1861ae75508e8a46 ./ua3f-0.3.1-armv7.tar.gz | ||
056e2b39ca2f1c3378b75bfa2243e3ba ./ua3f-0.3.1-armv8.tar.gz | ||
784ce20b7c1e6127d51598a134106abd ./ua3f-0.3.1-mips64.tar.gz | ||
de61b985103b162ee390fb2db1604c6e ./ua3f-0.3.1-mipsle-hardfloat.tar.gz | ||
de1fec881e9e489c07817f9c39030f26 ./ua3f-0.3.1-mipsle-softfloat.tar.gz | ||
ab1571905d37340c674cf5543c77d625 ./ua3f-0.3.1-mipsle.tar.gz | ||
338b1c46b464da264529ebb8917fd6ba ./ua3f-0.3.1-riscv64.tar.gz | ||
50f53a8171e9156687a497f57ad09403 ./ua3f-0.4.0-386.tar.gz | ||
c951b0c15dfb37c13bb0deda5c0cded8 ./ua3f-0.4.0-amd64.tar.gz | ||
347864a42fea23c5d7a3d668f2690d84 ./ua3f-0.4.0-arm.tar.gz | ||
6d01dee2902d063a1c8acb671bf5252e ./ua3f-0.4.0-arm64.tar.gz | ||
f70a52acbb2afe35543e7a68c2c1cf87 ./ua3f-0.4.0-armv7.tar.gz | ||
6d01dee2902d063a1c8acb671bf5252e ./ua3f-0.4.0-armv8.tar.gz | ||
ca1e2e4942c33b53ad32c84dbc78646c ./ua3f-0.4.0-mips64.tar.gz | ||
d7e3fc1947655431b81ab5c66a1a13aa ./ua3f-0.4.0-mipsle-hardfloat.tar.gz | ||
95e10592a6e8b260850a824ac307a860 ./ua3f-0.4.0-mipsle-softfloat.tar.gz | ||
17862ff6644b1b5cd2176911e3c4624a ./ua3f-0.4.0-mipsle.tar.gz | ||
a99dd267a84fa4dcb85b34433ef6987e ./ua3f-0.4.0-riscv64.tar.gz |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,39 +1,69 @@ | ||
#!/bin/sh | ||
|
||
project_name="ua3f" | ||
release_version="0.3.1" | ||
release_version="0.4.0" | ||
target=cmd/ua3f.go | ||
|
||
dist=./dist | ||
release_dir=./bin | ||
|
||
rm -rf $release_dir/* | ||
rm -rf $dist/* | ||
mkdir -p $release_dir | ||
mkdir -p $dist/bin | ||
|
||
cd $(dirname $0) | ||
|
||
gofmt -w ./ | ||
|
||
for goarch in "amd64" "arm" "arm64" "mipsle" "mips64" "riscv64" "386"; do | ||
obj_name=$project_name | ||
obj_name=$project_name-$release_version-$goarch | ||
|
||
GOOS=linux GOARCH=$goarch go build -trimpath -ldflags="-s -w" $target | ||
tar -zcf $release_dir/$project_name-$release_version-$goarch.tar.gz $obj_name | ||
rm -f $obj_name | ||
GOOS=linux GOARCH=$goarch go build -trimpath -ldflags="-s -w" -o $obj_name $target | ||
cp $obj_name $dist/bin | ||
mv $obj_name $project_name | ||
tar -zcf $release_dir/$project_name-$release_version-$goarch.tar.gz $project_name | ||
rm -f $project_name | ||
done | ||
|
||
GOOS=linux GOARCH="mipsle" GOMIPS=softfloat go build -trimpath -ldflags="-s -w" $target | ||
tar -zcf $release_dir/$project_name-$release_version-mipsle-softfloat.tar.gz $obj_name | ||
rm -f $obj_name | ||
GOOS=linux GOARCH="mipsle" GOMIPS=hardfloat go build -trimpath -ldflags="-s -w" $target | ||
tar -zcf $release_dir/$project_name-$release_version-mipsle-hardfloat.tar.gz $obj_name | ||
rm -f $obj_name | ||
# mipsle-softfloat | ||
obj_name=$project_name-$release_version-mipsle-softfloat | ||
GOOS=linux GOARCH="mipsle" GOMIPS=softfloat go build -trimpath -ldflags="-s -w" -o $obj_name $target | ||
cp $obj_name $dist/bin | ||
mv $obj_name $project_name | ||
tar -zcf $release_dir/$project_name-$release_version-mipsle-softfloat.tar.gz $project_name | ||
rm -f $project_name | ||
|
||
# mipsle-hardfloat | ||
obj_name=$project_name-$release_version-mipsle-hardfloat | ||
GOOS=linux GOARCH="mipsle" GOMIPS=hardfloat go build -trimpath -ldflags="-s -w" -o $obj_name $target | ||
cp $obj_name $dist/bin | ||
mv $obj_name $project_name | ||
tar -zcf $release_dir/$project_name-$release_version-mipsle-hardfloat.tar.gz $project_name | ||
rm -f $project_name | ||
|
||
GOOS=linux GOARCH="arm" GOARM=7 go build -trimpath -ldflags="-s -w" $target | ||
tar -zcf $release_dir/$project_name-$release_version-armv7.tar.gz $obj_name | ||
rm -f $obj_name | ||
# armv7 | ||
obj_name=$project_name-$release_version-armv7 | ||
GOOS=linux GOARCH="arm" GOARM=7 go build -trimpath -ldflags="-s -w" -o $obj_name $target | ||
cp $obj_name $dist/bin | ||
mv $obj_name $project_name | ||
tar -zcf $release_dir/$project_name-$release_version-armv7.tar.gz $project_name | ||
rm -f $project_name | ||
|
||
# armv8 | ||
cp $release_dir/$project_name-$release_version-arm64.tar.gz $release_dir/$project_name-$release_version-armv8.tar.gz | ||
cp $dist/bin/$project_name-$release_version-arm64 $dist/bin/$project_name-$release_version-armv8 | ||
|
||
cd $release_dir | ||
for file in ./*; do | ||
md5 -r $file >>sha1sum.txt | ||
done | ||
|
||
cd .. | ||
opkg_template=./opkg | ||
ipkg_build=ipkg-build.sh | ||
for goarch in "amd64" "arm" "arm64" "mipsle" "mips64" "riscv64" "386" "mipsle-softfloat" "mipsle-hardfloat" "armv7" "armv8"; do | ||
obj_name=$project_name-$release_version-$goarch | ||
mv $dist/bin/$obj_name $opkg_template/usr/bin/ua3f | ||
sh $ipkg_build $opkg_template | ||
mv $project_name"_"$release_version-1_all.ipk $dist/$project_name"_"$release_version-1_$goarch.ipk | ||
done |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Oops, something went wrong.