Skip to content

Commit

Permalink
Add postinstall script to modify appx capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
Thavarshan committed Sep 5, 2024
1 parent 248f69c commit e37fe25
Show file tree
Hide file tree
Showing 4 changed files with 17,502 additions and 6 deletions.
21 changes: 20 additions & 1 deletion forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const config: ForgeConfig = {
name: '@electron-forge/maker-appx',
platforms: ['win32'],
config: {
makeVersionWinStoreCompatible: true,
packageName: 'JeromeThayananthajothy.CometApp',
packageDisplayName: `${productName}App`,
packageDescription: description,
Expand All @@ -68,7 +69,25 @@ const config: ForgeConfig = {
devCert: path.resolve(__dirname, 'tools/certs/dev-cert.pfx'),
certPass: process.env.CERT_PASSWORD,
windowsKit: process.env.WINDOWS_KIT_PATH,
icon: path.resolve(iconDir, 'icon.ico')
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'
]
},
},
{
Expand Down
Loading

0 comments on commit e37fe25

Please sign in to comment.