update build.sh

This commit is contained in:
刘河 2019-12-04 21:35:43 +08:00
parent f365973bb9
commit e33b0be3b8
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ deploy:
- win_386_server.tar.gz
- win_amd64_client.tar.gz
- win_amd64_server.tar.gz
- npc_$VERSION.spk
- npc_syno.spk
- npc_sdk.tar.gz
on:
tags: true

View File

@ -167,7 +167,7 @@ git clone https://github.com/cnlh/spksrc.git ~/spksrc
mkdir ~/spksrc/nps && cp -rf ./* ~/spksrc/nps/
docker run -itd --name spksrc --env VERSION=$VERSION -v ~/spksrc:/spksrc synocommunity/spksrc /bin/bash
docker exec -it spksrc /bin/bash -c 'cd /spksrc && make setup && cd /spksrc/spk/npc && make'
cp ~/spksrc/packages/npc_noarch-all_$VERSION-1.spk ./npc_$VERSION.spk
cp ~/spksrc/packages/npc_noarch-all_$VERSION-1.spk ./npc_syno.spk
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin