User Tools

Site Tools


howto:app.asar

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howto:app.asar [2019/04/14 19:50]
digdat0 formatting
howto:app.asar [2019/04/14 20:04] (current)
digdat0 formatting, done
Line 8: Line 8:
 Install your toolchain as per the instructions [[.:toolchain|here]]. You only need to do this once... but check the instructions to see if there are any new tools that you may need. Install your toolchain as per the instructions [[.:toolchain|here]]. You only need to do this once... but check the instructions to see if there are any new tools that you may need.
  
-===== 2. Install DJI assistant =====+==== 2. Install DJI assistant ====
 Install [[https://www.dji.com/mavic/info#downloads|DJI assistant from here]] if it is not already installed. Install [[https://www.dji.com/mavic/info#downloads|DJI assistant from here]] if it is not already installed.
  
-===== 3. Extract the ASAR file =====+==== 3. Extract the ASAR file ====
   cd ~/Documents/nodejs   cd ~/Documents/nodejs
   ./node_modules/asar/bin/asar.js e /Applications/Assistant.app/AppFiles/app.asar ./app.asar.extr   ./node_modules/asar/bin/asar.js e /Applications/Assistant.app/AppFiles/app.asar ./app.asar.extr
  
-===== 4. Format the results =====+==== 4. Format the results ====
  
   ./node_modules/standard/bin/cmd.js --fix "./app.asar.extr/**/*.js"   ./node_modules/standard/bin/cmd.js --fix "./app.asar.extr/**/*.js"
Line 21: Line 21:
 The output is some interesting files which can help in understanding how DJI assistant works. The output is some interesting files which can help in understanding how DJI assistant works.
  
-===== Credits =====+==== Credits ====
   * https://github.com/mefistotelis/phantom-firmware-tools/issues/25   * https://github.com/mefistotelis/phantom-firmware-tools/issues/25
  
 ====== Windows ====== ====== Windows ======
  
-test+On Windows, you can still use the Node.js method shown above (with varying steps); or you can go an easier route and use 7-Zip with a plugin called Asar7z. This allows you to easily open the app.asar file similar to a compressed file (.zip, .rar, tar, etc) and save changes without needing a complex process. 
 + 
 +==== 1.  Download and Install 7zip and plugin ==== 
 + 
 +  * 7zip: https://www.7-zip.org/download.html 
 +  * Asar7z: http://www.tc4shell.com/en/7zip/asar/ 
 + 
 +Open and run the 7zip installer. Follow the prompts. 
 + 
 +==== 2.  Extract the plugin ==== 
 + 
 +Follow these steps to install the plugin file. Close 7-zip and then: 
 + 
 +  * Navigate to C:\Program Files\7-Zip 
 +  * Create a new folder named, "Formats" 
 +  * Open the Asar7z file you downloaded earlier 
 +  * Extract the contents of the Asar7z file to the newly created formats folder above, this will be C:\Program Files\7-Zip\Formats\ 
 + 
 +Now, each time you launch 7-Zip, it will automatically find Asar7z and use it when opening .asar files. 
 + 
 +==== 3.  Open the app.asar file ==== 
 + 
 +Now that you have installed the app plugin, open 7zip. Within 7zip, navigate to C:\Program Files (x86)\DJI Product\DJI Assistant 2\AppFiles and you will find app.asar. You can open this file with 7zip.  
 + 
 +You can either extract the contents to a destination, or find files and edit within 7zip. If you extract the files, you will need to re-compile the archive (which I'm not going into detail here). If you edit from within 7zip, files will be saved to the current app.asar, no need to recompress. 
 + 
 +Screenshot showing app.asar open in 7zip 
 + 
 + 
 +{{:howto:appsasar4.png?400|}}
howto/app.asar.1555271447.txt.gz · Last modified: 2019/04/14 19:50 by digdat0