mirror of
				https://github.com/jcefmaven/jcefbuild.git
				synced 2025-11-04 16:33:40 +08:00 
			
		
		
		
	Debug workdir on linux
This commit is contained in:
		@@ -17,6 +17,9 @@ cd "$( dirname "$0" )"
 | 
			
		||||
rm -rf out
 | 
			
		||||
mkdir out
 | 
			
		||||
 | 
			
		||||
pwd
 | 
			
		||||
ls -a
 | 
			
		||||
 | 
			
		||||
#Execute buildx with linux dockerfile and output to current directory
 | 
			
		||||
if [ $# -eq 2 ]
 | 
			
		||||
  then
 | 
			
		||||
 
 | 
			
		||||
@@ -22,14 +22,15 @@ for x in f:
 | 
			
		||||
  elif x.startswith("# Add this project's cmake"):
 | 
			
		||||
    inpatch = False
 | 
			
		||||
  if inpatch == False:
 | 
			
		||||
    result += x
 | 
			
		||||
    #Patch minimum cmake version to not break our builds on linux
 | 
			
		||||
    if x.startsWith("cmake_minimum_required"):
 | 
			
		||||
      result += "cmake_minimum_required(VERSION 3.18)\n"
 | 
			
		||||
    else
 | 
			
		||||
      result += x
 | 
			
		||||
 | 
			
		||||
f.close()
 | 
			
		||||
p.close()
 | 
			
		||||
 | 
			
		||||
#Replace cmake version, as 3.19 is not really needed
 | 
			
		||||
result.replace("3.19", "3.18")
 | 
			
		||||
 | 
			
		||||
f = open(input, "w")
 | 
			
		||||
f.write(result)
 | 
			
		||||
f.close()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user