diff --git a/Jenkinsfile b/Jenkinsfile index 5dcf8ad..1e05062 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,12 +10,16 @@ pipeline { parallel { stage('Linux') { steps { - sh 'dotnet publish -r linux-x64 -c Release --self-contained true --no-restore --output Linux-x64/' + sh 'dotnet publish -r linux-x64 -c Release -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true --no-restore --output Linux-x64/' + sh 'mv Linux-x64/SupportChild Linux-x64/SupportChild-SC' + sh 'dotnet publish -r linux-x64 -c Release -p:PublishSingleFile=true --self-contained false --no-restore --output Linux-x64/' } } stage('Windows') { steps { - sh 'dotnet publish -r win-x64 -c Release --self-contained true --no-restore --output Windows-x64/' + sh 'dotnet publish -r win-x64 -c Release -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true --no-restore --output Windows-x64/' + sh 'mv Windows-x64/SupportChild.exe Windows-x64/SupportChild-SC.exe' + sh 'dotnet publish -r win-x64 -c Release -p:PublishSingleFile=true --self-contained false --no-restore --output Windows-x64/' } } } @@ -25,14 +29,16 @@ pipeline { stage('Linux') { steps { archiveArtifacts(artifacts: 'Linux-x64/SupportChild', caseSensitive: true) + archiveArtifacts(artifacts: 'Linux-x64/SupportChild-SC', caseSensitive: true) } } stage('Windows') { steps { archiveArtifacts(artifacts: 'Windows-x64/SupportChild.exe', caseSensitive: true) + archiveArtifacts(artifacts: 'Windows-x64/SupportChild-SC.exe', caseSensitive: true) } } } } } -} +} \ No newline at end of file