Skip to content

Commit

Permalink
Update forge.config.ts to fix asset path for ffmpeg.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
Thavarshan committed Sep 5, 2024
1 parent 3185051 commit 5453e4b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 23 deletions.
21 changes: 2 additions & 19 deletions forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,24 +70,7 @@ const config: ForgeConfig = {
certPass: process.env.CERT_PASSWORD,
windowsKit: process.env.WINDOWS_KIT_PATH,
icon: path.resolve(iconDir, 'icon.ico'),
assets: [
{
path: path.resolve(__dirname, 'node_modules/ffmpeg-static/ffmpeg.exe'),
target: 'resources/ffmpeg.exe'
},
{
path: path.resolve(__dirname, 'node_modules/ffprobe-static/ffprobe.exe'),
target: 'resources/ffprobe.exe'
}
],
capabilities: [
'internetClient',
'privateNetworkClientServer',
'documentsLibrary',
'picturesLibrary',
'videosLibrary',
'broadFileSystemAccess'
]
assets: path.resolve(__dirname, 'node_modules/ffmpeg-static/ffmpeg.exe')
},
},
{
Expand Down Expand Up @@ -162,7 +145,7 @@ const config: ForgeConfig = {
]
};

function notarizeMaybe() {
function notarizeMaybe () {
if (process.platform !== 'darwin') {
return;
}
Expand Down
1 change: 0 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
},
"main": ".vite/build/main.js",
"scripts": {
"postinstall": "node scripts/postinstall.mjs",
"start": "electron-forge start",
"dev": "npm run start",
"package": "electron-forge package",
Expand Down
4 changes: 2 additions & 2 deletions scripts/postinstall.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import unzipper from 'unzipper';
import archiver from 'archiver';

const __dirname = path.dirname(new URL(import.meta.url).pathname);
const appxFilePath = path.resolve(__dirname, '../out/make/JeromeThayananthajothy.CometApp.appx');
const outputAppxPath = path.resolve(__dirname, '../out/make/JeromeThayananthajothy.CometApp-modified.appx');
const appxFilePath = path.resolve(__dirname, '../out/make/appx/x64/JeromeThayananthajothy.CometApp.appx');
const outputAppxPath = path.resolve(__dirname, '../out/make/appx/x64/JeromeThayananthajothy.CometApp-modified.appx');
const tempDir = path.resolve(__dirname, '../temp/appx');
const manifestFile = 'AppxManifest.xml';

Expand Down

0 comments on commit 5453e4b

Please sign in to comment.