wd my cloud pack app

  • Download “Third party app GPL sources” from WD website. There is mksapkg tool for build WD App package
  • Make “App” (Use any of GPL “sources” as base).
  • apkg.sign & apkg.xml automatically generated by mksapkg tool, based on apkg.rc data
  • Hmm… If you found something usefyl - add it to init.sh in any app (This file executed firs after reboot / while OS boot)
  • For unpack compiled apkg (app) use 7zip (He can automatically skip header info).
  • About fil structure inside app:

  • apkg.rc - Main file, info about this app

  • before_apkg.sh - Script, run before apkg install
  • preinst.sh - Preinstall script, exec before install.sh, but after before_apkg.sh
  • init.sh - exec every time, when OS start.
  • Install.sh & remove.sh - install/remove scripts
  • start.sh & stop.sh - For control app (exec when user change “enable this app” checkbox in web gui)
  • web/desc.xml - localisation file / app info (For web gui)
  • web/app_name.png - app icon for web gui
  • web/index.html - App web page for control.

SKD Documents here: http://developer.mycloud.com/

Download mksapkg: http://downloads.wdc.com/gpl/WDMyCloud_NAS_Apps_GPL_20150226.tar.gz

Some very useful resources: https://ftp.anionix.ru/WDMyCloud/WDMyCloud-Gen2/