1
1
mirror of https://github.com/neosubhamoy/pytubepp-helper.git synced 2026-02-04 11:22:22 +05:30

(refactor): merged windows and linux builds in single codebase

This commit is contained in:
2024-10-30 11:14:07 +05:30
Unverified
parent 70d1b622e0
commit 6cdcde5125
121 changed files with 352 additions and 9671 deletions

15
copyFiles.js Normal file
View File

@@ -0,0 +1,15 @@
import fs from 'fs';
import path from 'path';
import { fileURLToPath } from 'url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const msghostsrc = path.join(__dirname, 'src-tauri', 'target', 'release', 'pytubepp-helper-msghost.exe');
const msghostdest = path.join(__dirname, 'src-tauri', 'pytubepp-helper-msghost.exe');
const autostartsrc = path.join(__dirname, 'src-tauri', 'target', 'release', 'pytubepp-helper-autostart.exe');
const autostartdest = path.join(__dirname, 'src-tauri', 'pytubepp-helper-autostart.exe');
fs.copyFileSync(msghostsrc, msghostdest);
fs.copyFileSync(autostartsrc, autostartdest);
console.log('Files copied successfully');