Parcourir la source

Force submodule builds to net35 on CI

ghorsington il y a 5 ans
Parent
commit
6d9d91fb57
1 fichiers modifiés avec 5 ajouts et 4 suppressions
  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') {