Fixed copy import file
This commit is contained in:
		
							parent
							
								
									0c13d6b02b
								
							
						
					
					
						commit
						2c9dedfb0d
					
				| @ -64,8 +64,8 @@ path_target="./modules/renderer/imports" | ||||
|             fi | ||||
|             echo "Linking \"${path_target}/${dst_file}\" to \"${path}/${src_file}\"" | ||||
| 
 | ||||
|             cp "${path}/${src_file}" "${path_target}/copy_${dst_file}" | ||||
|             echo "Create copy \"${path}/${src_file}\" to \"${path_target}/copy_${dst_file}\"" | ||||
|             cp "${path}/${src_file}" "${path_target}/.copy_${dst_file}" | ||||
|             echo "Create copy \"${path}/${src_file}\" to \"${path_target}/.copy_${dst_file}\"" | ||||
|         done | ||||
|         break | ||||
|     done | ||||
| @ -84,15 +84,15 @@ if [[ ${path_found} -eq 0 ]]; then | ||||
|             rm "${path_target}/${dst_file}" | ||||
|         fi | ||||
| 
 | ||||
|         if [[ ! -e "${path_target}/copy_${dst_file}" ]]; then | ||||
|         if [[ ! -e "${path_target}/.copy_${dst_file}" ]]; then | ||||
|             echo "Missing copy of file ${dst_file} because we cant find any valid link!" | ||||
|             exit 1 | ||||
|         fi | ||||
| 
 | ||||
|         if [[ ${support_rel_linking} -ne 0 ]]; then | ||||
|             ln -rs "${path_target}/copy_${dst_file}" "${path_target}/${dst_file}" | ||||
|             ln -rs "${path_target}/.copy_${dst_file}" "${path_target}/${dst_file}" | ||||
|         else | ||||
|             _source=$(realpath "${path_target}/copy_${dst_file}") | ||||
|             _source=$(realpath "${path_target}/.copy_${dst_file}") | ||||
|             _current_dir=$(pwd) | ||||
|             cd ${path_target} | ||||
|             [[ $? -ne 0 ]] && { | ||||
| @ -102,7 +102,7 @@ if [[ ${path_found} -eq 0 ]]; then | ||||
|             ln -s "${_source}" "${dst_file}" | ||||
|             cd ${_current_dir} | ||||
|         fi | ||||
|         echo "Linking \"${path_target}/${dst_file}\" to \"${path_target}/copy_${dst_file}\"" | ||||
|         echo "Linking \"${path_target}/${dst_file}\" to \"${path_target}/.copy_${dst_file}\"" | ||||
|     done | ||||
|     path_found=1 | ||||
| fi | ||||
|  | ||||
							
								
								
									
										3536
									
								
								modules/renderer/imports/copy_imports_shared.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3536
									
								
								modules/renderer/imports/copy_imports_shared.d.ts
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -12,9 +12,6 @@ | ||||
|     "../native/*/exports/" | ||||
|   ], | ||||
|   "exclude": [ | ||||
|     "./shared/imports/copy_*.d.ts", | ||||
|     "node_modules", | ||||
|     "declarations", | ||||
|     "app/dummy-declarations/*.d.ts" | ||||
|     "**/.copy_*.d.ts" | ||||
|   ] | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user