Fix icon path in buildappimage.js

This commit is contained in:
Tracy Rust 2024-01-24 13:45:21 -05:00
parent 7109668279
commit b85b8dcd23
1 changed files with 3 additions and 3 deletions

View File

@ -76,7 +76,7 @@ function addIconToAppDir(resolution)
{
var theDir = "out/AppDir/usr/share/icons/hicolor/" + resolution + "x" + resolution + "/apps";
var theDestPath = theDir + "/binder.png"
var srcPath = "../icons/icon" + resolution + ".png";
var srcPath = "icons/icon" + resolution + ".png";
fs.mkdirSync(theDir, {recursive: true});
fs.copyFileSync(srcPath, theDestPath);
@ -114,7 +114,7 @@ function constructAppImage(versionString)
fs.copyFileSync("Binder.desktop", "out/AppDir/Binder.desktop");
//Also it wants a specific icon
fs.copyFileSync( "../icons/icon256.png", "out/AppDir/binder.png");
fs.copyFileSync( "icons/icon256.png", "out/AppDir/binder.png");
addIconToAppDir(16);
@ -127,7 +127,7 @@ function constructAppImage(versionString)
addIconToAppDir(256);
fs.mkdirSync("out/AppDir/usr/share/icons/hicolor/scalable", {recursive: true});
fs.copyFileSync("../icons/icon.svg", "out/AppDir/usr/share/icons/hicolor/scalable/binder.svg");
fs.copyFileSync("icons/icon.svg", "out/AppDir/usr/share/icons/hicolor/scalable/binder.svg");
//Do this or deal with a weird character in the output
versionString = versionString.trim();