Spaces:
webzepetoku
/
Sleeping

webzepetoku commited on
Commit
bf72bce
·
verified ·
1 Parent(s): 465224c

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +1 -3
server.js CHANGED
@@ -35,7 +35,6 @@ function copyLooseFiles(srcDir, destDir, logs) {
35
  }
36
  }
37
 
38
- // Fungsi Pencetak Log Debug Pohon Direktori
39
  function getDirectoryTree(dir, prefix = '') {
40
  let tree = '';
41
  const files = fs.readdirSync(dir);
@@ -84,11 +83,10 @@ app.post('/convert', async (req, res) => {
84
  logs.push(`[STEP 3] ASSET-RIPPER: Membongkar Biner Raksasa agar struktur terlihat jelas...`);
85
  const hpAssetBundles = path.join(extractHpPath, 'assetbundles');
86
  try {
87
- // Mengeksekusi AssetRipper Console di background
88
  execSync(`AssetRipper "${hpAssetBundles}" -o "${rippedHpPath}" -q`);
89
  logs.push(`[ASSET-RIPPER] Sukses membongkar file biner ke ExportedProject!`);
90
 
91
- // BUAT LOG DEBUG LENGKAP STRUKTUR UNTUK BOS
92
  const exportedProjectAssets = path.join(rippedHpPath, 'ExportedProject', 'Assets');
93
  if (fs.existsSync(exportedProjectAssets)) {
94
  const tree = getDirectoryTree(exportedProjectAssets);
 
35
  }
36
  }
37
 
 
38
  function getDirectoryTree(dir, prefix = '') {
39
  let tree = '';
40
  const files = fs.readdirSync(dir);
 
83
  logs.push(`[STEP 3] ASSET-RIPPER: Membongkar Biner Raksasa agar struktur terlihat jelas...`);
84
  const hpAssetBundles = path.join(extractHpPath, 'assetbundles');
85
  try {
86
+ // PANGGILAN PERINTAH ASSET RIPPER LINUX
87
  execSync(`AssetRipper "${hpAssetBundles}" -o "${rippedHpPath}" -q`);
88
  logs.push(`[ASSET-RIPPER] Sukses membongkar file biner ke ExportedProject!`);
89
 
 
90
  const exportedProjectAssets = path.join(rippedHpPath, 'ExportedProject', 'Assets');
91
  if (fs.existsSync(exportedProjectAssets)) {
92
  const tree = getDirectoryTree(exportedProjectAssets);