Skip to content

Commit

Permalink
ci: Fixed the error where the Shell script could not find the path.
Browse files Browse the repository at this point in the history
  • Loading branch information
real-zony committed Dec 12, 2023
1 parent fef0e15 commit 289da6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ AliCloudDynamicDNS/settings.json
AliCloudDynamicDNS/release/AliCloudDynamicDNS.exe
AliCloudDynamicDNS/release/AliCloudDynamicDNS.pdb

/AliCloudDynamicDNS/TempFiles
/AliCloudDynamicDNS/TempFiles

TempFiles/
6 changes: 3 additions & 3 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fi
rm -rf ./TempFiles/*

for platform in "${Platforms[@]}"; do
dotnet publish -r "$platform" -c Release -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true -p:PublishWithAspNetCoreTargetManifest=false
zip -r -j "./bin/Release/net$DOTNET_VERSION/$platform/publish/${PROGRAM_NAME}_${platform}_$RELEASE_VERSION.zip" "./bin/Release/net$DOTNET_VERSION/$platform/publish/"*
mv "./bin/Release/net$DOTNET_VERSION/$platform/publish/${PROGRAM_NAME}_${platform}_$RELEASE_VERSION.zip" ./TempFiles
dotnet publish -r "$platform" -c Release -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true /p:useapphost=true -p:PublishWithAspNetCoreTargetManifest=false
zip -r -j "./AliCloudDynamicDNS/bin/Release/net$DOTNET_VERSION/$platform/publish/${PROGRAM_NAME}_${platform}_$RELEASE_VERSION.zip" "./AliCloudDynamicDNS/bin/Release/net$DOTNET_VERSION/$platform/publish/"*
mv "./AliCloudDynamicDNS/bin/Release/net$DOTNET_VERSION/$platform/publish/${PROGRAM_NAME}_${platform}_$RELEASE_VERSION.zip" ./TempFiles
done

0 comments on commit 289da6f

Please sign in to comment.