mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
refactor(core): remove legacy plebbit terminology
This commit is contained in:
@@ -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 });
|
||||
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user