diff --git a/src/download.ts b/src/download.ts index 75242b7..ff74892 100644 --- a/src/download.ts +++ b/src/download.ts @@ -347,7 +347,7 @@ export async function processBuild( * @param languageFiles Locales mapped to their desktop file translations. */ export async function createDesktopFile(languageFiles: Map>): Promise { - const filePath = 'UI/xdg-data/com.obsproject.Studio.desktop'; + const filePath = 'UI/cmake/linux/com.obsproject.Studio.desktop'; const desktopFile = normalize(await FSE.readFile(filePath, 'utf-8')); let result = ''; for (const line of desktopFile.split('\n')) { @@ -433,7 +433,7 @@ function pushChanges(detachedSubmodules: string[], submodules: string[]): void { 'plugins/mac-virtualcam/src/obs-plugin/data/locale/*-*.ini', 'UI/data/locale.ini', 'UI/data/locale/*-*.ini', - 'UI/xdg-data/com.obsproject.Studio.desktop', + 'UI/cmake/linux/com.obsproject.Studio.desktop', 'UI/frontend-plugins/*/data/locale/*-*.ini' ]) { exec(`git add '${allowedPath}'`); diff --git a/tests/download.test.ts b/tests/download.test.ts index df60d36..130c993 100644 --- a/tests/download.test.ts +++ b/tests/download.test.ts @@ -567,7 +567,7 @@ it(createLocaleFile.name, async () => { it(createDesktopFile.name, async () => { MOCK_FS({ - 'UI/xdg-data/com.obsproject.Studio.desktop': + 'UI/cmake/linux/com.obsproject.Studio.desktop': '[Desktop Entry]\nVersion=1.0\nName=OBS Studio\n\nGenericName[an_ES]=abc\nComment[an_ES]=abc\n' }); await createDesktopFile( @@ -588,7 +588,7 @@ it(createDesktopFile.name, async () => { ] ]) ); - expect(await FSE.readFile('UI/xdg-data/com.obsproject.Studio.desktop', 'utf-8')).toBe( + expect(await FSE.readFile('UI/cmake/linux/com.obsproject.Studio.desktop', 'utf-8')).toBe( '[Desktop Entry]\nVersion=1.0\nName=OBS Studio\n\nGenericName[de_DE]=deName\nComment[de_DE]=deComment\nGenericName[en_GB]=enName\nComment[en_GB]=enComment\n' ); });