refactor(core): remove legacy plebbit terminology

This commit is contained in:
Tommaso Casaburi
2026-04-17 10:48:27 +07:00
parent e366dac25c
commit ee7a5b5778
158 changed files with 626 additions and 836 deletions
+11
View File
@@ -0,0 +1,11 @@
import fs from 'fs';
import path from 'path';
import { fileURLToPath } from 'url';
import { getDevPkcDataPath } from '../electron/pkc-paths.js';
const dirname = path.dirname(fileURLToPath(import.meta.url));
const projectRoot = path.join(dirname, '..');
const dataPath = getDevPkcDataPath(projectRoot);
console.log(`Removing local PKC data path: ${dataPath}`);
fs.rmSync(dataPath, { recursive: true, force: true });
+3 -3
View File
@@ -71,9 +71,9 @@ const main = async () => {
const versionMetadataPath = path.join(installedAppPath, 'Contents', 'Resources', 'app', 'build', 'version.json');
const sandboxHome = path.join(workspace, 'home');
const updaterDebugLogPath = path.join(workspace, 'app-updater.log');
const plebbitDataPath = path.join(sandboxHome, 'Library', 'Application Support', 'plebbit');
await fs.promises.mkdir(plebbitDataPath, { recursive: true });
await fs.promises.writeFile(path.join(plebbitDataPath, 'auth-key'), 'e2e-auth-key', 'utf8');
const pkcDataPath = path.join(sandboxHome, 'Library', 'Application Support', 'pkc');
await fs.promises.mkdir(pkcDataPath, { recursive: true });
await fs.promises.writeFile(path.join(pkcDataPath, 'auth-key'), 'e2e-auth-key', 'utf8');
const electronApp = await electron.launch({
executablePath: path.join(installedAppPath, 'Contents', 'MacOS', '5chan'),