mirror of
https://github.com/zen-browser/surfer.git
synced 2025-07-08 01:10:03 +02:00
chore: Update package.json version to 1.2.15 and move optional icons for branding
This commit is contained in:
parent
6237dc0eb2
commit
3e45a0de4f
2 changed files with 10 additions and 25 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@zen-browser/surfer",
|
"name": "@zen-browser/surfer",
|
||||||
"version": "1.2.14",
|
"version": "1.2.15",
|
||||||
"description": "Simplifying building firefox forks!",
|
"description": "Simplifying building firefox forks!",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|
|
@ -95,17 +95,6 @@ async function setupImages(configPath: string, outputPath: string) {
|
||||||
return true
|
return true
|
||||||
})
|
})
|
||||||
|
|
||||||
log.debug('Generating Windows Icons')
|
|
||||||
await copyFile(
|
|
||||||
join(configPath, "firefox.ico"),
|
|
||||||
join(outputPath, "firefox.ico")
|
|
||||||
);
|
|
||||||
|
|
||||||
await copyFile(
|
|
||||||
join(configPath, "firefox64.ico"),
|
|
||||||
join(outputPath, "firefox64.ico")
|
|
||||||
);
|
|
||||||
|
|
||||||
// TODO: Custom MacOS icon support
|
// TODO: Custom MacOS icon support
|
||||||
if ((process as any).surferPlatform == 'darwin') {
|
if ((process as any).surferPlatform == 'darwin') {
|
||||||
log.debug('Generating Mac Icons')
|
log.debug('Generating Mac Icons')
|
||||||
|
@ -354,22 +343,18 @@ function configureBrandingNsis(brandingNsis: string, brandingConfig: {
|
||||||
}
|
}
|
||||||
|
|
||||||
function addOptionalIcons(brandingPath: string, outputPath: string) {
|
function addOptionalIcons(brandingPath: string, outputPath: string) {
|
||||||
// move pbmode.ico, content/windows/document.ico and content/windows/document_pdf.ico
|
// move all icons in the top directory and inside "content/" into the branding directory
|
||||||
// into the branding directory
|
const icons = readdirSync(brandingPath);
|
||||||
const pbmodeIcon = join(brandingPath, 'pbmode.ico');
|
const iconsContent = readdirSync(join(brandingPath, 'content'));
|
||||||
const documentIcon = join(brandingPath, 'content', 'windows', 'document.ico');
|
|
||||||
const documentPdfIcon = join(brandingPath, 'content', 'windows', 'document_pdf.ico');
|
|
||||||
|
|
||||||
if (existsSync(pbmodeIcon)) {
|
for (const icon of icons) {
|
||||||
copyFileSync(pbmodeIcon, join(outputPath, 'pbmode.ico'));
|
log.info(`Copying ${icon} to ${outputPath}`);
|
||||||
|
copyFileSync(join(brandingPath, icon), join(outputPath, icon));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (existsSync(documentIcon)) {
|
for (const icon of iconsContent) {
|
||||||
copyFileSync(documentIcon, join(outputPath, 'document.ico'));
|
log.info(`Copying ${icon} to ${outputPath}`);
|
||||||
}
|
copyFileSync(join(brandingPath, 'content', icon), join(outputPath, icon));
|
||||||
|
|
||||||
if (existsSync(documentPdfIcon)) {
|
|
||||||
copyFileSync(documentPdfIcon, join(outputPath, 'document_pdf.ico'));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue