mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-03-11 17:45:30 +00:00
added dynamic bin-path.yml and gui fixes
This commit is contained in:
parent
77d2086df0
commit
a3593986af
4 changed files with 971 additions and 859 deletions
|
|
@ -8,11 +8,9 @@
|
|||
"@mui/icons-material": "^7.3.4",
|
||||
"@mui/lab": "7.0.0-beta.12",
|
||||
"@mui/material": "^7.3.4",
|
||||
"concurrently": "^9.2.1",
|
||||
"notistack": "^3.0.2",
|
||||
"react": "^19.2.0",
|
||||
"react-dom": "^19.2.0",
|
||||
"typescript": "^5.9.3",
|
||||
"uuid": "^11.1.0",
|
||||
"ws": "^8.18.3"
|
||||
},
|
||||
|
|
@ -27,10 +25,12 @@
|
|||
"@types/react-dom": "^19.2.1",
|
||||
"@types/uuid": "^10.0.0",
|
||||
"babel-loader": "^10.0.0",
|
||||
"concurrently": "^9.2.1",
|
||||
"css-loader": "^7.1.2",
|
||||
"html-webpack-plugin": "^5.6.4",
|
||||
"style-loader": "^4.0.0",
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "^5.9.3",
|
||||
"webpack": "^5.102.1",
|
||||
"webpack-cli": "^6.0.1",
|
||||
"webpack-dev-server": "^5.2.2"
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
1
gui/react/pnpm-workspace.yaml
Normal file
1
gui/react/pnpm-workspace.yaml
Normal file
|
|
@ -0,0 +1 @@
|
|||
dangerouslyAllowAllBuilds: true
|
||||
|
|
@ -83,7 +83,6 @@ async function buildBinary(buildType: BuildTypes, gui: boolean) {
|
|||
fs.mkdirSync(`${buildDir}/videos`);
|
||||
fs.mkdirSync(`${buildDir}/widevine`);
|
||||
fs.mkdirSync(`${buildDir}/playready`);
|
||||
fs.copySync('./config/bin-path.yml', `${buildDir}/config/bin-path.yml`);
|
||||
fs.copySync('./config/cli-defaults.yml', `${buildDir}/config/cli-defaults.yml`);
|
||||
fs.copySync('./config/dir-path.yml', `${buildDir}/config/dir-path.yml`);
|
||||
fs.copySync('./config/gui.yml', `${buildDir}/config/gui.yml`);
|
||||
|
|
@ -99,6 +98,25 @@ async function buildBinary(buildType: BuildTypes, gui: boolean) {
|
|||
if (fs.existsSync(`${buildsDir}/${buildFull}.7z`)) {
|
||||
fs.removeSync(`${buildsDir}/${buildFull}.7z`);
|
||||
}
|
||||
|
||||
// Generate bin-path.yml
|
||||
const ext = buildType.startsWith('windows') ? '.exe' : '';
|
||||
|
||||
const binConf = {
|
||||
ffmpeg: `ffmpeg${ext}`,
|
||||
mkvmerge: `mkvmerge${ext}`,
|
||||
ffprobe: `ffprobe${ext}`,
|
||||
mp4decrypt: `mp4decrypt${ext}`,
|
||||
shaka: `shaka-packager${ext}`
|
||||
};
|
||||
|
||||
fs.writeFileSync(
|
||||
`${buildDir}/config/bin-path.yml`,
|
||||
Object.entries(binConf)
|
||||
.map(([key, value]) => `${key}: '${value}'`)
|
||||
.join('\n') + '\n'
|
||||
);
|
||||
|
||||
console.info(`[Build] Build completed`);
|
||||
|
||||
// Zipping
|
||||
|
|
|
|||
Loading…
Reference in a new issue