Browse Source

Increase the number of RIDs in build.sh

master
Abheek Dhawan 3 years ago
parent
commit
cbd098cc4f
  1. 2
      .drone.yml
  2. 12
      build.sh

2
.drone.yml

@ -18,6 +18,8 @@ steps:
- apt-get install dotnet-sdk-5.0 -y - apt-get install dotnet-sdk-5.0 -y
- ./build.sh - ./build.sh
- ./zip-files.sh - ./zip-files.sh
when:
event: tag
- name: release - name: release
image: plugins/gitea-release image: plugins/gitea-release

12
build.sh

@ -1,5 +1,9 @@
#!/bin/bash #!/bin/bash
rids=( "linux-x64" "linux-musl-x64" "linux-arm" "linux-arm64" "osx-x64" "osx.11.0-arm64" "win-x64" "win-x86" "win-arm" "win-arm64" )
dotnet publish -r linux-x64 -c Release -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true -o ./builds/linux-x64 for rid in "${rids[@]}"
dotnet publish -r win-x64 -c Release -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true -o ./builds/win-x64 do
dotnet publish -r osx-x64 -c Release -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true -o ./builds/osx-x64 echo "Building $rid..."
dotnet publish -r $rid -c Release -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true -o "./builds/$rid"
echo "Finished building $rid."
done
echo "Finishing building all packages"

Loading…
Cancel
Save