Fix icon path in buildappimage.js
This commit is contained in:
parent
7109668279
commit
b85b8dcd23
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue