mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-10 08:05:14 +02:00
rename klo to ktx
This commit is contained in:
parent
1a42152e6f
commit
3ce510b55b
704 changed files with 10205 additions and 10255 deletions
|
|
@ -6,7 +6,7 @@ import { access as fsAccess, chmod as fsChmod, writeFile as fsWriteFile } from '
|
|||
import { delimiter, join } from 'node:path';
|
||||
import { pathToFileURL } from 'node:url';
|
||||
import { promisify } from 'node:util';
|
||||
import { ensureCliBinExecutable, kloRootDir } from './prepare-cli-bin.mjs';
|
||||
import { ensureCliBinExecutable, ktxRootDir } from './prepare-cli-bin.mjs';
|
||||
|
||||
const execFileAsync = promisify(execFile);
|
||||
|
||||
|
|
@ -73,7 +73,7 @@ async function writePinnedPosixLauncher(globalBin, binPath, binaryName, writeFil
|
|||
const launcherPath = join(globalBin, binaryName);
|
||||
const script = [
|
||||
'#!/bin/sh',
|
||||
'# Generated by `pnpm run link:dev` in the KLO workspace.',
|
||||
'# Generated by `pnpm run link:dev` in the KTX workspace.',
|
||||
'# Keep this launcher pinned to the Node binary that built native dependencies.',
|
||||
`exec ${shellDoubleQuote(process.execPath)} ${shellDoubleQuote(binPath)} "$@"`,
|
||||
'',
|
||||
|
|
@ -88,7 +88,7 @@ async function writePinnedWindowsLauncher(globalBin, binPath, binaryName, writeF
|
|||
const launcherPath = join(globalBin, `${binaryName}.cmd`);
|
||||
const script = [
|
||||
'@echo off',
|
||||
'REM Generated by `pnpm run link:dev` in the KLO workspace.',
|
||||
'REM Generated by `pnpm run link:dev` in the KTX workspace.',
|
||||
`"${process.execPath}" "${binPath}" %*`,
|
||||
'',
|
||||
].join('\r\n');
|
||||
|
|
@ -134,8 +134,8 @@ async function assertBuiltCli(rootDir, access, binPathOverride) {
|
|||
}
|
||||
|
||||
export async function linkDevCli(options = {}) {
|
||||
const rootDir = options.rootDir ?? kloRootDir();
|
||||
const binaryName = options.binaryName ?? 'klo-dev';
|
||||
const rootDir = options.rootDir ?? ktxRootDir();
|
||||
const binaryName = options.binaryName ?? 'ktx-dev';
|
||||
const access = options.access ?? fsAccess;
|
||||
const chmod = options.chmod ?? fsChmod;
|
||||
const writeFile = options.writeFile ?? fsWriteFile;
|
||||
|
|
@ -177,9 +177,9 @@ if (import.meta.url === pathToFileURL(process.argv[1]).href) {
|
|||
try {
|
||||
const result = await linkDevCli({
|
||||
checkOnly: hasFlag('--check-only'),
|
||||
binaryName: optionValue('--name', 'klo-dev'),
|
||||
binaryName: optionValue('--name', 'ktx-dev'),
|
||||
});
|
||||
process.stdout.write(`KLO CLI bin: ${result.binPath}\n`);
|
||||
process.stdout.write(`KTX CLI bin: ${result.binPath}\n`);
|
||||
if (result.linked) {
|
||||
process.stdout.write(`Linked binary: ${result.binaryName}\n`);
|
||||
process.stdout.write(`Verified: ${result.verification.output}\n`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue