Jelajahi Sumber

Force submodule builds to net35 on CI

ghorsington 5 tahun lalu
induk
melakukan
6d9d91fb57
1 mengubah file dengan 5 tambahan dan 4 penghapusan
  1. 5 4
      scripts/jenkins_master.groovy

+ 5 - 4
scripts/jenkins_master.groovy

@@ -45,10 +45,11 @@ Changes since ${latestTag}:
         stage('Prepare BepInEx') {
             steps {
                 dir('BepInEx') {
-                    sh '''
-						nuget restore
-						mkdir -p "lib"
-					'''
+                    sh "mkdir -p lib"
+
+                    // Ghetto fix to force TargetFrameworks to only net35
+                    sh "find . -type f -name \"*.csproj\" -exec sed -i -E \"s/(<TargetFrameworks>)[^<]+(<\\/TargetFrameworks>)/\\1net35\\2/g\" {} +"
+                    sh "nuget restore"
                 }
 
                 dir('BepInEx/BepInEx') {