Skip to content

Commit

Permalink
erm usr local?
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjamuffin99 committed Aug 12, 2024
1 parent 1c6f6e3 commit 57732ca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,11 @@ async function setup(version, nightly, cacheDependencyPath) {
external_node_path_namespaceObject.join(nekoPath, '*.dylib'),
external_node_path_namespaceObject.join(haxePath, '*.dylib'),
]);
await (0,exec.exec)('ln', [
'-sfv',
external_node_path_namespaceObject.join(nekoPath, '*.dylib'),
external_node_path_namespaceObject.join("/usr/local/lib", '*.dylib'),
]);
}
console.log(`[haxelib] setup start = ${haxePath}/lib`);
const haxelibPath = external_node_path_namespaceObject.join(haxePath, 'lib');
Expand Down
6 changes: 6 additions & 0 deletions src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ export async function setup(version: string, nightly: boolean, cacheDependencyPa
path.join(nekoPath, '*.dylib'),
path.join(haxePath, '*.dylib'),
]);

await exec('ln', [
'-sfv',
path.join(nekoPath, '*.dylib'),
path.join("/usr/local/lib", '*.dylib'),
]);
}

console.log(`[haxelib] setup start = ${haxePath}/lib`);
Expand Down

0 comments on commit 57732ca

Please sign in to comment.