mirror of
				https://github.com/chickensoft-games/setup-godot.git
				synced 2025-10-31 16:03:56 +00:00 
			
		
		
		
	final
This commit is contained in:
		
							parent
							
								
									09eedd1a31
								
							
						
					
					
						commit
						41b7202745
					
				
							
								
								
									
										30
									
								
								dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										30
									
								
								dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							| @ -57,9 +57,10 @@ const core = __importStar(__nccwpck_require__(7484)); | ||||
| const toolsCache = __importStar(__nccwpck_require__(3472)); | ||||
| const fs = __importStar(__nccwpck_require__(9896)); | ||||
| const os = __importStar(__nccwpck_require__(857)); | ||||
| const child_process = __importStar(__nccwpck_require__(5317)); | ||||
| const process = __importStar(__nccwpck_require__(932)); | ||||
| const path_1 = __importDefault(__nccwpck_require__(6928)); | ||||
| const utils_1 = __nccwpck_require__(9277); | ||||
| const child_process = __importStar(__nccwpck_require__(1421)); | ||||
| function run(platform) { | ||||
|     return __awaiter(this, void 0, void 0, function* () { | ||||
|         var _a, _b, _c; | ||||
| @ -255,8 +256,15 @@ function run(platform) { | ||||
|                 fs.rmSync(binDir, { recursive: true, force: true }); | ||||
|                 fs.mkdirSync(binDir, { recursive: true }); | ||||
|             } | ||||
|             child_process.execSync(`ln -s ${godotExecutable} ${godotAlias}`); | ||||
|             // fs.linkSync(godotExecutable, godotAlias)
 | ||||
|             // `fs.linkSync` has some issues on macOS for Godot executable
 | ||||
|             // it does not create symlink at all, it copies whole file
 | ||||
|             // and corrupts it a way that Godot gets killed by kernel (Killed: 9)
 | ||||
|             if (process.platform === "darwin") { | ||||
|                 child_process.execSync(`ln -s "${godotExecutable}" "${godotAlias}"`); | ||||
|             } | ||||
|             else { | ||||
|                 fs.linkSync(godotExecutable, godotAlias); | ||||
|             } | ||||
|             core.info(`✅ Symlink to Godot created`); | ||||
|             const godotSharpDirAlias = path_1.default.join(binDir, 'GodotSharp'); | ||||
|             if (useDotnet) { | ||||
| @ -89154,14 +89162,6 @@ module.exports = require("net"); | ||||
| 
 | ||||
| /***/ }), | ||||
| 
 | ||||
| /***/ 1421: | ||||
| /***/ ((module) => { | ||||
| 
 | ||||
| "use strict"; | ||||
| module.exports = require("node:child_process"); | ||||
| 
 | ||||
| /***/ }), | ||||
| 
 | ||||
| /***/ 7598: | ||||
| /***/ ((module) => { | ||||
| 
 | ||||
| @ -89218,6 +89218,14 @@ module.exports = require("perf_hooks"); | ||||
| 
 | ||||
| /***/ }), | ||||
| 
 | ||||
| /***/ 932: | ||||
| /***/ ((module) => { | ||||
| 
 | ||||
| "use strict"; | ||||
| module.exports = require("process"); | ||||
| 
 | ||||
| /***/ }), | ||||
| 
 | ||||
| /***/ 4876: | ||||
| /***/ ((module) => { | ||||
| 
 | ||||
|  | ||||
							
								
								
									
										2
									
								
								dist/index.js.map
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js.map
									
									
									
										generated
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										14
									
								
								src/main.ts
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								src/main.ts
									
									
									
									
									
								
							| @ -3,6 +3,8 @@ import * as core from '@actions/core' | ||||
| import * as toolsCache from '@actions/tool-cache' | ||||
| import * as fs from 'fs' | ||||
| import * as os from 'os' | ||||
| import * as child_process from 'child_process' | ||||
| import * as process from 'process' | ||||
| import path from 'path' | ||||
| 
 | ||||
| import { | ||||
| @ -13,7 +15,6 @@ import { | ||||
|   getPlatform, | ||||
|   Platform | ||||
| } from './utils' | ||||
| import * as child_process from 'node:child_process' | ||||
| 
 | ||||
| async function run(platform: Platform): Promise<void> { | ||||
|   // Get action inputs
 | ||||
| @ -296,8 +297,15 @@ async function run(platform: Platform): Promise<void> { | ||||
|       fs.mkdirSync(binDir, {recursive: true}) | ||||
|     } | ||||
| 
 | ||||
|     child_process.execSync(`ln -s ${godotExecutable} ${godotAlias}`); | ||||
|     // fs.linkSync(godotExecutable, godotAlias)
 | ||||
|     // `fs.linkSync` has some issues on macOS for Godot executable
 | ||||
|     // it does not create symlink at all, it copies whole file
 | ||||
|     // and corrupts it a way that Godot gets killed by kernel (Killed: 9)
 | ||||
|     if (process.platform === "darwin") { | ||||
|       child_process.execSync(`ln -s "${godotExecutable}" "${godotAlias}"`) | ||||
|     } else { | ||||
|       fs.linkSync(godotExecutable, godotAlias) | ||||
|     } | ||||
| 
 | ||||
|     core.info(`✅ Symlink to Godot created`) | ||||
|     const godotSharpDirAlias = path.join(binDir, 'GodotSharp') | ||||
|     if (useDotnet) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user