feat: rename plebchan to 5chan

This commit is contained in:
plebeius
2025-10-17 23:30:35 +02:00
parent e1f1f280cc
commit 1360dd8348
71 changed files with 316 additions and 316 deletions
+4 -4
View File
@@ -10,7 +10,7 @@ function addPortableToPortableExecutableFileName() {
for (const file of files) {
if (file.endsWith('.exe') && !file.match('Setup')) {
const filePath = path.resolve(distFolderPath, file);
const renamedFilePath = path.resolve(distFolderPath, file.replace('plebchan', 'plebchan Portable'));
const renamedFilePath = path.resolve(distFolderPath, file.replace('5chan', '5chan Portable'));
fs.moveSync(filePath, renamedFilePath);
}
}
@@ -21,12 +21,12 @@ function createHtmlArchive() {
return;
}
const zipBinPath = path.resolve(rootPath, 'node_modules', '7zip-bin', 'linux', 'x64', '7za');
const plebchanHtmlFolderName = `plebchan-html-${packageJson.version}`;
const outputFile = path.resolve(distFolderPath, `${plebchanHtmlFolderName}.zip`);
const 5chanHtmlFolderName = `5chan-html-${packageJson.version}`;
const outputFile = path.resolve(distFolderPath, `${5chanHtmlFolderName}.zip`);
const inputFolder = path.resolve(rootPath, 'build');
try {
execSync(`${zipBinPath} a ${outputFile} ${inputFolder}`);
execSync(`${zipBinPath} rn -r ${outputFile} build ${plebchanHtmlFolderName}`);
execSync(`${zipBinPath} rn -r ${outputFile} build ${5chanHtmlFolderName}`);
} catch (e) {
console.error('electron build createHtmlArchive error:', e);
}