mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-16 05:13:41 +00:00
ci: improve name
This commit is contained in:
1 parent
dccf080fbb
commit
ff4e6f448c
2 files changed
+9
-6
No files matched your search
@@ -40,14 +40,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mkdir -p dist/zip
|
mkdir -p dist/zip
|
||||||
goos_arr=(windows darwin linux)
|
goos_arr=(windows darwin linux)
|
||||||
goarch_arr=(386 amd64 arm arm64)
|
goarch_arr=(386 amd64 arm64)
|
||||||
export CGO_ENABLED=0
|
export CGO_ENABLED=0
|
||||||
for goos in "${goos_arr[@]}"; do
|
for goos in "${goos_arr[@]}"; do
|
||||||
for goarch in "${goarch_arr[@]}"; do
|
for goarch in "${goarch_arr[@]}"; do
|
||||||
dir="dist/gopeed-$VERSION-$goos-$goarch/"
|
dir="dist/gopeed-$VERSION-$goos-$goarch/"
|
||||||
(GOOS=$goos GOARCH=$goarch go build -tags nosqlite -ldflags="-s -w" -o $dir github.com/monkeyWie/gopeed/cmd/gopeed \
|
(GOOS=$goos GOARCH=$goarch go build -tags nosqlite -ldflags="-s -w" -o $dir github.com/monkeyWie/gopeed/cmd/gopeed \
|
||||||
&& cd $dir \
|
&& cd $dir \
|
||||||
&& zip -r ../zip/gopeed-cli-$VERSION-$goarch-$goos.zip * \
|
&& zip -r ../zip/gopeed-cli-$VERSION-$goos-$goarch.zip * \
|
||||||
&& cd ../..) \
|
&& cd ../..) \
|
||||||
|| true
|
|| true
|
||||||
done
|
done
|
||||||
@@ -128,14 +128,14 @@ jobs:
|
|||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
mkdir dist
|
mkdir dist
|
||||||
appdmg appdmg.json dist/Gopeed-$VERSION-arm64-macos.dmg
|
appdmg appdmg.json dist/Gopeed-$VERSION-macos-arm64.dmg
|
||||||
|
|
||||||
# amd64
|
# amd64
|
||||||
cd $PROJECT_DIR
|
cd $PROJECT_DIR
|
||||||
go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o bin/libgopeed.dylib github.com/monkeyWie/gopeed/bind/desktop
|
go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o bin/libgopeed.dylib github.com/monkeyWie/gopeed/bind/desktop
|
||||||
cp bin/libgopeed.dylib ui/flutter/build/macos/Build/Products/Release/Gopeed.app/Contents/Frameworks/
|
cp bin/libgopeed.dylib ui/flutter/build/macos/Build/Products/Release/Gopeed.app/Contents/Frameworks/
|
||||||
cd ui/flutter/build/macos/Build/Products/Release
|
cd ui/flutter/build/macos/Build/Products/Release
|
||||||
appdmg appdmg.json dist/Gopeed-$VERSION-amd64-macos.dmg
|
appdmg appdmg.json dist/Gopeed-$VERSION-macos-amd64.dmg
|
||||||
- name: Upload
|
- name: Upload
|
||||||
uses: shogo82148/actions-upload-release-asset@v1
|
uses: shogo82148/actions-upload-release-asset@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -141,8 +141,11 @@ func (f *Fetcher) Pause() (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
f.status = base.DownloadStatusPause
|
f.status = base.DownloadStatusPause
|
||||||
f.cancel()
|
|
||||||
<-f.pauseCh
|
if f.cancel != nil {
|
||||||
|
f.cancel()
|
||||||
|
<-f.pauseCh
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user