@webos-tools/cli 3.1.3 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +1 -1
- package/.eslintrc.js +52 -52
- package/APIs.js +79 -79
- package/CHANGELOG.md +32 -4
- package/LICENSE +201 -201
- package/README.md +226 -219
- package/bin/ares-config.js +211 -202
- package/bin/ares-device-info.js +30 -30
- package/bin/ares-device.js +222 -219
- package/bin/ares-generate.js +274 -274
- package/bin/ares-inspect.js +179 -179
- package/bin/ares-install.js +223 -223
- package/bin/ares-launch.js +318 -318
- package/bin/ares-log.js +259 -259
- package/bin/ares-novacom.js +220 -220
- package/bin/ares-package.js +347 -336
- package/bin/ares-pull.js +156 -156
- package/bin/ares-push.js +155 -155
- package/bin/ares-server.js +174 -174
- package/bin/ares-setup-device.js +10 -6
- package/bin/ares-shell.js +132 -132
- package/bin/ares.js +166 -166
- package/files/conf/ares.json +50 -49
- package/files/conf/command-service.json +78 -73
- package/files/conf/config.json +31 -31
- package/files/conf/ipk.json +30 -30
- package/files/conf/novacom-devices.json +69 -52
- package/files/conf/query/query-app.json +14 -14
- package/files/conf/query/query-hosted.json +18 -18
- package/files/conf/query/query-package.json +10 -10
- package/files/conf/query/query-service.json +6 -6
- package/files/conf/sdk.json +8 -8
- package/files/conf/template.json +57 -57
- package/files/conf/webos_emul +27 -27
- package/files/conf-base/env/sdk-apollo.json +8 -8
- package/files/conf-base/env/sdk-ose.json +8 -8
- package/files/conf-base/env/sdk-signage.json +8 -0
- package/files/conf-base/env/sdk-tv.json +8 -8
- package/files/conf-base/key/pubkey-signage.pem +9 -0
- package/files/conf-base/profile/config-apollo.json +29 -29
- package/files/conf-base/profile/config-ose.json +29 -29
- package/files/conf-base/profile/config-signage.json +29 -0
- package/files/conf-base/profile/config-tv.json +31 -31
- package/files/conf-base/query/query-app.json +14 -14
- package/files/conf-base/query/query-hosted.json +18 -18
- package/files/conf-base/query/query-package.json +10 -10
- package/files/conf-base/query/query-service.json +6 -6
- package/files/conf-base/query/signage/query-app.json +14 -0
- package/files/conf-base/query/signage/query-service.json +6 -0
- package/files/conf-base/template-conf/ose-templates.json +67 -67
- package/files/conf-base/template-conf/signage-sdk-templates.json +239 -0
- package/files/conf-base/template-conf/tv-sdk-templates.json +57 -57
- package/files/help/ares-config.help +48 -48
- package/files/help/ares-device.help +109 -109
- package/files/help/ares-generate.help +101 -91
- package/files/help/ares-inspect.help +77 -76
- package/files/help/ares-install.help +95 -95
- package/files/help/ares-launch.help +111 -105
- package/files/help/ares-log-pmlogd.help +84 -84
- package/files/help/ares-log.help +101 -101
- package/files/help/ares-novacom.help +68 -68
- package/files/help/ares-package.help +103 -101
- package/files/help/ares-pull.help +38 -38
- package/files/help/ares-push.help +38 -38
- package/files/help/ares-server.help +44 -44
- package/files/help/ares-setup-device.help +196 -156
- package/files/help/ares-shell.help +42 -42
- package/files/help/ares.help +52 -52
- package/files/help/readme.help +23 -23
- package/files/schema/ApplicationDescription.schema +319 -319
- package/files/schema/NovacomDevices.schema +63 -62
- package/files/templates/apollo-sdk-templates/appinfo/appinfo.json +10 -10
- package/files/templates/apollo-sdk-templates/bootplate-web/index.html +88 -88
- package/files/templates/apollo-sdk-templates/hosted-webapp/index.html +13 -13
- package/files/templates/apollo-sdk-templates/js-service/helloclient.js +31 -31
- package/files/templates/apollo-sdk-templates/js-service/helloworld_webos_service.js +188 -188
- package/files/templates/apollo-sdk-templates/serviceinfo/package.json +11 -11
- package/files/templates/apollo-sdk-templates/serviceinfo/services.json +8 -8
- package/files/templates/ose-sdk-templates/appinfo/appinfo.json +10 -10
- package/files/templates/ose-sdk-templates/bootplate-web/index.html +88 -88
- package/files/templates/ose-sdk-templates/hosted-webapp/index.html +13 -13
- package/files/templates/ose-sdk-templates/js-service/helloclient.js +31 -31
- package/files/templates/ose-sdk-templates/js-service/helloworld_webos_service.js +188 -188
- package/files/templates/ose-sdk-templates/qml-app/main.qml +68 -68
- package/files/templates/ose-sdk-templates/qmlappinfo/appinfo.json +10 -10
- package/files/templates/ose-sdk-templates/serviceinfo/package.json +11 -11
- package/files/templates/ose-sdk-templates/serviceinfo/services.json +8 -8
- package/files/templates/signage-sdk-templates/Backlight_Scheduling/clockTable.js +29 -0
- package/files/templates/signage-sdk-templates/Backlight_Scheduling/index.html +53 -0
- package/files/templates/signage-sdk-templates/Backlight_Scheduling/js/idcap.js +21 -0
- package/files/templates/signage-sdk-templates/Backlight_Scheduling/remocon.js +214 -0
- package/files/templates/signage-sdk-templates/Backlight_Scheduling/scheduler.js +123 -0
- package/files/templates/signage-sdk-templates/Backlight_Scheduling/setanddelete.js +25 -0
- package/files/templates/signage-sdk-templates/Backlight_Scheduling/style.css +213 -0
- package/files/templates/signage-sdk-templates/Download_Progress/app.css +27 -0
- package/files/templates/signage-sdk-templates/Download_Progress/app.js +407 -0
- package/files/templates/signage-sdk-templates/Download_Progress/index.html +32 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova/2.7.0/cordova.webos.js +7038 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova/LICENSE +201 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/storage.js +23 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/configuration.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/deviceInfo.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/inputSource.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/power.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/security.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/signage.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/sound.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/storage.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/time.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/utility.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/video.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/configuration.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/deviceInfo.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/inputSource.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/power.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/security.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/signage.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/sound.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/storage.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/time.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/utility.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/video.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/configuration.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/deviceInfo.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/inputSource.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/power.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/security.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/signage.js +8 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/sound.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/storage.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/time.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/utility.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/video.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/configuration.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/deviceInfo.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/inputSource.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/power.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/security.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/signage.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/sound.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/storage.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/time.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/utility.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/video.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/led.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/led.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/iot.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/iot.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/iot.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/led.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/iot.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/led.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/iot.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/iot.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/custom/custom1.2.js +14 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/custom/custom1.3.1.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/custom/custom1.3.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/custom/custom1.4.js +14 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/README.txt +40 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/gpio.js +16 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/gps.js +16 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/humidity.js +16 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/light.js +16 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/nfc.js +16 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/rfid.js +16 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/temperature.js +16 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/thermalPrinter.js +16 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/idcap.js +21 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/webOS/LICENSE-2.0.txt +202 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/webOS/webOS.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/res/webossignage_logo.png +0 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/css/styles.css +270 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/data/data.json +12 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/fonts/MuseoSans300.otf +0 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/fonts/MuseoSans700Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/index.html +43 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/js/controller.js +263 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/js/helpers/util.js +130 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/res/images/tpl_01_img_sign.png +0 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/res/images/tpl_01_logo_nike.png +0 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/res/videos/tpl_01_video.mp4 +0 -0
- package/files/templates/signage-sdk-templates/File_Explorer/README.txt +16 -0
- package/files/templates/signage-sdk-templates/File_Explorer/index.html +44 -0
- package/files/templates/signage-sdk-templates/File_Explorer/js/Root.js +48 -0
- package/files/templates/signage-sdk-templates/File_Explorer/js/definition.js +59 -0
- package/files/templates/signage-sdk-templates/File_Explorer/js/explorer.js +367 -0
- package/files/templates/signage-sdk-templates/File_Explorer/js/explorerController.js +462 -0
- package/files/templates/signage-sdk-templates/File_Explorer/js/idcap.js +21 -0
- package/files/templates/signage-sdk-templates/File_Explorer/js/mainController.js +261 -0
- package/files/templates/signage-sdk-templates/File_Explorer/style.css +233 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/appinfo.json +11 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/css/styles.css +168 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/data/data.json +5 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/fonts/MuseoSans300.otf +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/fonts/MuseoSans500.otf +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/fonts/MuseoSans700.otf +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/images/AAir.png +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/images/BAirline.png +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/images/CAirline.png +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/images/DAir.png +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/images/EAirline.png +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/images/tpl_05_img_flight.png +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/index.html +32 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/js/controller.js +235 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/js/helpers/util.js +183 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/readme.txt +29 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/server/example.json +4 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/server/package.json +9 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/server/readme.txt +30 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/server/routes/flights.js +493 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/server/server.js +43 -0
- package/files/templates/signage-sdk-templates/Information_Board/css/styles.css +239 -0
- package/files/templates/signage-sdk-templates/Information_Board/data/data.json +49 -0
- package/files/templates/signage-sdk-templates/Information_Board/fonts/Museo Sans 300.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Board/fonts/Museo Sans 500.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Board/fonts/Museo Sans 700.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Board/index.html +101 -0
- package/files/templates/signage-sdk-templates/Information_Board/js/controller.js +111 -0
- package/files/templates/signage-sdk-templates/Information_Board/js/helpers/util.js +130 -0
- package/files/templates/signage-sdk-templates/Information_Board/readme.txt +22 -0
- package/files/templates/signage-sdk-templates/Information_Board/res/images/tpl_06_img_main_01.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Board/res/images/tpl_06_img_news.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Board/res/images/tpl_06_logo_harvard.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/css/styles.css +387 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/data/data.json +185 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 300 Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 300.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 500 Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 500.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 700 Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 700.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/index.html +320 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/js/controller.js +373 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/js/helpers/util.js +130 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_arrow_l_n.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_arrow_l_p.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_arrow_r_n.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_arrow_r_p.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_close_n.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_close_p.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_rotation_n.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_rotation_p.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_bg_01.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_01.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_02.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_03.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_04.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_05.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_06.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_07.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_08.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_09.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_10.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_11.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_12.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_01.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_02.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_03.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_04.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_05.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_06.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_01.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_02.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_03.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_04.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_05.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_06.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_07.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_08.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_09.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_10.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_11.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_12.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_style_01.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_style_02.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_logo.png +0 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/index.html +40 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova/2.7.0/cordova.webos.js +7038 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova/LICENSE +201 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/power.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/storage.js +23 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/video.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/power.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/video.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/power.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/security.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/time.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/video.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/power.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/security.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/time.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/video.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/led.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/power.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/security.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/time.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/video.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/iot.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/led.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/power.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/security.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/time.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/video.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/iot.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/power.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/security.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/time.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/video.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/custom1.4.js +14 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/idcap.js +21 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/initializer.js +234 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/remocon.js +73 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/scheduler.js +84 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/videoPlayer.js +352 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/remocon.png +0 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/style.css +99 -0
- package/files/templates/signage-sdk-templates/Mart/css/styles.css +248 -0
- package/files/templates/signage-sdk-templates/Mart/data/data.json +37 -0
- package/files/templates/signage-sdk-templates/Mart/fonts/Museo Sans 300 Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Mart/fonts/Museo Sans 300.otf +0 -0
- package/files/templates/signage-sdk-templates/Mart/fonts/Museo Sans 500.otf +0 -0
- package/files/templates/signage-sdk-templates/Mart/fonts/Museo Sans 700.otf +0 -0
- package/files/templates/signage-sdk-templates/Mart/index.html +81 -0
- package/files/templates/signage-sdk-templates/Mart/js/controller.js +102 -0
- package/files/templates/signage-sdk-templates/Mart/js/helpers/util.js +130 -0
- package/files/templates/signage-sdk-templates/Mart/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img.png +0 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_bg.png +0 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_brand.png +0 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_list_01.png +0 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_list_02.png +0 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_list_03.png +0 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_list_04.png +0 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_tag.png +0 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_logo.png +0 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/css/styles.css +40 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/data/data.json +6 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/index.html +28 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/js/controller.js +427 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/js/helpers/util.js +134 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/res/images/tpl_02_img_poster.jpg +0 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/res/videos/tpl_02_video_01.mp4 +0 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/res/videos/tpl_02_video_02.mp4 +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/css/styles.css +163 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/data/data.json +92 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/fonts/MuseoSans300.otf +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/fonts/MuseoSans500.otf +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/fonts/MuseoSans700.otf +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/fonts/MuseoSans700Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/index.html +197 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/js/controller.js +158 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/js/helpers/util.js +130 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_bg_top.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_01.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_02.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_03.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_04.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_05.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_06.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_07.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_08.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_09.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_logo.png +0 -0
- package/files/templates/signage-sdk-templates/Simple_Network_FailOver/index.html +29 -0
- package/files/templates/signage-sdk-templates/Simple_Network_FailOver/js/idcap.js +21 -0
- package/files/templates/signage-sdk-templates/Simple_Network_FailOver/networkMonitor.js +136 -0
- package/files/templates/signage-sdk-templates/Simple_Network_FailOver/style.css +142 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/css/styles.css +281 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/data/data.json +33 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 300 Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 300.otf +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 500 Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 500.otf +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 700 Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 700.otf +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/index.html +110 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/js/controller.js +171 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/js/helpers/util.js +130 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_bg.png +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_01.png +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_01_l.png +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_02.png +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_03.png +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_04.png +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_05.png +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_logo_01.png +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_logo_02.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/css/styles.css +634 -0
- package/files/templates/signage-sdk-templates/Wayfinder/data/data.json +339 -0
- package/files/templates/signage-sdk-templates/Wayfinder/fonts/MuseoSans300.otf +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/fonts/MuseoSans500.otf +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/fonts/MuseoSans700.otf +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/fonts/MuseoSans700Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/index.html +171 -0
- package/files/templates/signage-sdk-templates/Wayfinder/js/controller.js +447 -0
- package/files/templates/signage-sdk-templates/Wayfinder/js/helpers/util.js +175 -0
- package/files/templates/signage-sdk-templates/Wayfinder/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_btn_back_n.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_icon_dot_n.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_icon_dot_s.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_01.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_02.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_03.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_01_d.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_01_n.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_02_d.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_02_n.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_03_d.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_03_n.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_shadow.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_home_01_n.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_home_02_n.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_home_03_n.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_point.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_point_shadow.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_elevator.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_escalator.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_exit.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_info.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_parking.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_toilet.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_logo_lg.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_logo_shoppingmall_name.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_logo_store.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_popup_bg.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/css/styles.css +136 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/data/data.json +33 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/fonts/Museo Sans 300.otf +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/fonts/Museo Sans 500.otf +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/fonts/Museo Sans 700.otf +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/index.html +51 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/js/controller.js +265 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/js/helpers/util.js +130 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/ajax.gif +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_cloudy.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_partlycloudy.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_rainy.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_snowy.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_sunny.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_thunder.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_windy.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_01.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_02.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_03.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_04.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_05.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_06.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_07.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_logo.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/css/styles.css +312 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/data/data.json +16 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/data/newsWidget.json +21 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/data/shareWidget.json +112 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/data/weatherWidget.json +45 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/fonts/MuseoSans300.otf +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/fonts/MuseoSans500.otf +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/fonts/MuseoSans700.otf +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/index.html +62 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/js/controller.js +390 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/js/helpers/util.js +162 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/Namo.jpg +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/NotAvailable.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/clear.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/clouds.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/default.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/koreanFt.jpg +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/mist.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/rain.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/snow.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/thunder.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_icon_down_01.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_icon_down_02.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_icon_up_01.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_icon_up_02.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_img_news.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_img_news1.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_video_dim.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/videos/tpl_07_video.mp4 +0 -0
- package/files/templates/signage-sdk-templates/appinfo/appinfo.json +11 -0
- package/files/templates/signage-sdk-templates/idcap_api/1.1.0/js/idcap.js +21 -0
- package/files/templates/signage-sdk-templates/idcap_api/1.1.0/js/release_notes.txt +25 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova/2.7.0/cordova.webos.js +7025 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova/LICENSE +7025 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/power.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/signage.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/sound.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/storage.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/video.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/release_notes.txt +109 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova/2.7.0/cordova.webos.js +7038 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova/LICENSE +201 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/power.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/security.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/signage.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/sound.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/storage.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/time.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/utility.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/video.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/all.css +358 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-bold-webfont.eot +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-bold-webfont.svg +134 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-bold-webfont.ttf +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-bold-webfont.woff +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-regular-webfont.eot +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-regular-webfont.svg +134 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-regular-webfont.ttf +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-regular-webfont.woff +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/handheld.css +217 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/screen.css +405 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/files.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/index.html +1203 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/intro.html +100 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/all.js +326 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/dessert.css +34 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-apollo.js +51 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-clj.js +64 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-css.js +78 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-go.js +58 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-hs.js +101 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-lisp.js +93 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-lua.js +59 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-ml.js +56 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-n.js +62 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-proto.js +35 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-scala.js +54 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-sql.js +57 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-tex.js +46 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-vb.js +61 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-vhdl.js +34 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-wiki.js +53 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-xq.js +67 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-yaml.js +27 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/prettify.css +52 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/prettify.js +1477 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/html5.js +6 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#clearCache.html +550 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getCurrentTime.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getLocaleList.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getOSDLanguage.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getOSDLock.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getPictureMode.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getPictureProperty.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getProperty.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getServerProperty.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getTimeZone.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getTimeZoneList.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getUSBLock.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getVirtualKeyboardLanguage.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#restartApplication.html +550 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setCurrentTime.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setOSDLanguage.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setOSDLock.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setPictureMode.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setPictureProperty.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setProperty.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setServerProperty.html +610 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setTimeZone.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setUSBLock.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setVirtualKeyboardLanguage.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration.AppMode.html +685 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration.AppType.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration.PictureMode.html +910 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#connectWifi.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getBeaconInfo.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getEddystoneInfo.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getNetworkInfo.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getNetworkMacInfo.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getPlatformInfo.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getProxyInfo.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getSoftApInfo.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getSystemUsageInfo.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getWifiList.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getiBeaconInfo.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setBeaconInfo.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setEddystoneInfo.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setNetworkInfo.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setProxyInfo.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setSoftApInfo.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setiBeaconInfo.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#startWps.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#stopWps.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo.EddystoneFrame.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Error.ERROR_CODE.html +820 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Error.html +460 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/InputSource#changeInputSource.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/InputSource#getInputSourceStatus.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/InputSource#initialize.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#addOffTimer.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#addOnTimer.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#deleteOffTimer.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#deleteOnTimer.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#enableAllOffTimer.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#enableAllOnTimer.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#enableWakeOnLan.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#executePowerCommand.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getDPMWakeup.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getOffTimerList.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getOnTimerList.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getPMMode.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getPowerOnDelay.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getPowerStatus.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#setDPMWakeup.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#setDisplayMode.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#setPMMode.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#setPowerOnDelay.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power.DPMSignalType.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power.DisplayMode.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power.PMMode.html +775 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power.PowerCommand.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power.TimerWeek.html +910 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Security#existServerCertificate.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Security#registerServerCertificate.html +561 -2
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Security#unregisterServerCertificate.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#captureScreen.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#enableCheckScreen.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getFailoverMode.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getIntelligentAuto.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getLanDaisyChain.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getPowerSaveMode.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getSignageInfo.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getStudioMode.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getSystemMonitoringInfo.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getTileInfo.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getUsageData.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getUsagePermission.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#registerSystemMonitor.html +573 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setDigitalAudioInputMode.html +567 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setFailoverMode.html +567 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setIntelligentAuto.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setIsmMethod.html +567 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setLanDaisyChain.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setPortraitMode.html +567 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setPowerSaveMode.html +567 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setStudioMode.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setTileInfo.html +567 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setUsagePermission.html +567 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#unregisterSystemMonitor.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.AutomaticStandbyMode.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.DigitalAudioInput.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.DpmMode.html +910 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.EventType.html +775 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.FailoverMode.html +685 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.ImgResolution.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.IsmMethod.html +910 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.KeyOperationMode.html +685 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.MonitoringSource.html +775 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.OsdPortraitMode.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#getSoundMode.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#getSoundOut.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#getSoundStatus.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#setExternalSpeaker.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#setMuted.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#setSoundMode.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#setSoundOut.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#setVolumeLevel.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound.SoundMode.html +820 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound.SpeakerType.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#changeLogoImage.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#copyFile.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#downloadFirmware.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#exists.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#fsync.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#getFirmwareUpgradeStatus.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#getStorageInfo.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#listFiles.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#mkdir.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#moveFile.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#readFile.html +563 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#removeAll.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#removeApplication.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#removeFile.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#statFile.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#unzipFile.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#upgradeApplication.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#upgradeFirmware.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#writeFile.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage.AppMode.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage.AppType.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage.SCAP_URI.html +512 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#addHolidaySchedule.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#delAllHolidaySchedules.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#delHolidaySchedule.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#getAllHolidaySchedules.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#getHolidayScheduleMode.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#setHolidayScheduleMode.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Utility#createToast.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#getContentRotation.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#getVideoStatus.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#setContentRotation.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#setRotatedVideoTransform.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#setVideoSize.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#setVideoViewTransform.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/_global_.html +453 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/image/media_status.jpg +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/image/setVideoSize.png +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_configuration.js.html +2651 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_deviceInfo.js.html +1860 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_inputSource.js.html +1382 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_power.js.html +2697 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_security.js.html +357 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_signage.js.html +3601 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_sound.js.html +1123 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_storage.js.html +2615 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_time.js.html +720 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_utility.js.html +196 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_video.js.html +1090 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/release_notes.txt +148 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova/2.7.0/cordova.webos.js +7038 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova/LICENSE +201 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/power.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/security.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/signage.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/sound.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/storage.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/time.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/utility.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/video.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/all.css +358 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-bold-webfont.eot +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-bold-webfont.svg +134 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-bold-webfont.ttf +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-bold-webfont.woff +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-regular-webfont.eot +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-regular-webfont.svg +134 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-regular-webfont.ttf +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-regular-webfont.woff +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/handheld.css +217 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/screen.css +405 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/files.html +599 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/index.html +1280 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/intro.html +100 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/all.js +326 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/dessert.css +34 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-apollo.js +51 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-clj.js +64 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-css.js +78 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-go.js +58 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-hs.js +101 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-lisp.js +93 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-lua.js +59 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-ml.js +56 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-n.js +62 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-proto.js +35 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-scala.js +54 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-sql.js +57 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-tex.js +46 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-vb.js +61 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-vhdl.js +34 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-wiki.js +53 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-xq.js +67 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-yaml.js +27 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/prettify.css +52 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/prettify.js +1477 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/html5.js +6 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#clearCache.html +572 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getCurrentTime.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getLocaleList.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getOSDLanguage.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getOSDLock.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getPictureMode.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getPictureProperty.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getProperty.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getServerProperty.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getTimeZone.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getTimeZoneList.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getUSBLock.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getVirtualKeyboardLanguage.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#restartApplication.html +572 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setCurrentTime.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setOSDLanguage.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setOSDLock.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setPictureMode.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setPictureProperty.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setProperty.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setServerProperty.html +632 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setTimeZone.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setUSBLock.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setVirtualKeyboardLanguage.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration.AppMode.html +707 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration.AppType.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration.PictureMode.html +932 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#connectWifi.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getBeaconInfo.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getEddystoneInfo.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getExternalInputList.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getNetworkInfo.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getNetworkMacInfo.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getPlatformInfo.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getProxyInfo.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getSoftApInfo.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getSystemUsageInfo.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getWifiList.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getiBeaconInfo.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setBeaconInfo.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setEddystoneInfo.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setNetworkInfo.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setProxyInfo.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setSoftApInfo.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setiBeaconInfo.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#startWps.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#stopWps.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo.EddystoneFrame.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Error.ERROR_CODE.html +842 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Error.html +482 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/InputSource#changeInputSource.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/InputSource#getInputSourceStatus.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/InputSource#initialize.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#addOffTimer.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#addOnTimer.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#deleteOffTimer.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#deleteOnTimer.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#enableAllOffTimer.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#enableAllOnTimer.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#enableWakeOnLan.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#executePowerCommand.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getDPMWakeup.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getOffTimerList.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getOnOffTimeSchedule.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getOnTimerList.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getPMMode.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getPowerOnDelay.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getPowerStatus.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#setDPMWakeup.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#setDisplayMode.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#setOnOffTimeSchedule.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#setPMMode.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#setPowerOnDelay.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#unsetOnOffTimeSchedule.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power.DPMSignalType.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power.DisplayMode.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power.PMMode.html +797 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power.PowerCommand.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power.TimerWeek.html +932 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Security#existServerCertificate.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Security#registerServerCertificate.html +583 -2
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Security#unregisterServerCertificate.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#captureScreen.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#enableCheckScreen.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getFailoverMode.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getIntelligentAuto.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getLanDaisyChain.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getPowerSaveMode.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getSignageInfo.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getStudioMode.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getSystemMonitoringInfo.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getTileInfo.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getUsageData.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getUsagePermission.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#registerRS232CEventListener.html +594 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#registerSystemMonitor.html +595 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setDigitalAudioInputMode.html +589 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setFailoverMode.html +589 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setIntelligentAuto.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setIsmMethod.html +589 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setLanDaisyChain.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setPortraitMode.html +589 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setPowerSaveMode.html +589 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setStudioMode.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setTileInfo.html +589 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setUsagePermission.html +589 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#unregisterRS232CEventListener.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#unregisterSystemMonitor.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.AutomaticStandbyMode.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.DigitalAudioInput.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.DpmMode.html +932 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.EventType.html +797 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.FailoverMode.html +707 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.ImgResolution.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.IsmMethod.html +932 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.KeyOperationMode.html +707 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.MonitoringSource.html +797 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.OsdPortraitMode.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#getSoundMode.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#getSoundOut.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#getSoundStatus.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#setExternalSpeaker.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#setMuted.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#setSoundMode.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#setSoundOut.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#setVolumeLevel.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound.SoundMode.html +842 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound.SpeakerType.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#changeLogoImage.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#copyFile.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#decryptFile.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#downloadFirmware.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#exists.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#fsync.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#getFirmwareUpgradeStatus.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#getMD5Hash.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#getStorageInfo.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#listFiles.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#mkdir.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#moveFile.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#readFile.html +585 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#removeAll.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#removeApplication.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#removeFile.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#statFile.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#unzipFile.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#upgradeApplication.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#upgradeFirmware.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#writeFile.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage.AppMode.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage.AppType.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage.SCAP_URI.html +534 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#addHolidaySchedule.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#delAllHolidaySchedules.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#delHolidaySchedule.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#getAllHolidaySchedules.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#getHolidaySchedule.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#getHolidayScheduleMode.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#setHolidaySchedule.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#setHolidayScheduleMode.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#unsetHolidaySchedule.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Utility#createToast.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#getContentRotation.html +586 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#getVideoStatus.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#setContentRotation.html +592 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#setRotatedVideoTransform.html +592 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#setVideoSize.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#setVideoViewTransform.html +592 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/_global_.html +475 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/image/media_status.jpg +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/image/setVideoSize.png +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_configuration.js.html +2651 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_deviceInfo.js.html +1930 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_inputSource.js.html +1383 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_power.js.html +2942 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_security.js.html +352 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_signage.js.html +3853 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_sound.js.html +1123 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_storage.js.html +2747 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_time.js.html +976 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_utility.js.html +196 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_video.js.html +754 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/release_notes.txt +148 -0
- package/files/templates/signage-sdk-templates/serviceinfo/package.json +11 -0
- package/files/templates/signage-sdk-templates/serviceinfo/services.json +8 -0
- package/files/templates/signage-sdk-templates/signageicon/icon.png +0 -0
- package/files/templates/signage-sdk-templates/signageicon/largeIcon.png +0 -0
- package/files/templates/signage-sdk-templates/webos-service/helloclient.js +23 -0
- package/files/templates/signage-sdk-templates/webos-service/helloworld_webos_service.js +128 -0
- package/files/templates/tv-sdk-templates/appinfo/appinfo.json +10 -10
- package/files/templates/tv-sdk-templates/bootplate-web/index.html +58 -58
- package/files/templates/tv-sdk-templates/bootplate-web/webOSTVjs-1.2.10/LICENSE-2.0.txt +202 -202
- package/files/templates/tv-sdk-templates/hosted-webapp/index.html +14 -14
- package/files/templates/tv-sdk-templates/js-service/helloworld_service.js +39 -39
- package/files/templates/tv-sdk-templates/packageinfo/packageinfo.json +3 -3
- package/files/templates/tv-sdk-templates/serviceinfo/package.json +11 -11
- package/files/templates/tv-sdk-templates/serviceinfo/services.json +8 -8
- package/lib/base/ares.html +40 -40
- package/lib/base/cli-appdata.js +289 -290
- package/lib/base/cli-control.js +44 -44
- package/lib/base/common-tools.js +29 -29
- package/lib/base/error-handler.js +265 -265
- package/lib/base/file-watcher.js +155 -155
- package/lib/base/help-format.js +147 -147
- package/lib/base/luna.js +178 -178
- package/lib/base/novacom.js +1214 -1202
- package/lib/base/sdkenv.js +59 -59
- package/lib/base/server.js +137 -137
- package/lib/base/setup-device.js +26 -8
- package/lib/base/version-tools.js +79 -79
- package/lib/com.sdk.ares.signage.hostedapp.ipk +0 -0
- package/lib/device.js +1419 -1419
- package/lib/generator.js +1 -1
- package/lib/inspect.js +493 -493
- package/lib/install.js +465 -463
- package/lib/launch.js +607 -605
- package/lib/log.js +584 -584
- package/lib/package.js +2253 -2149
- package/lib/pull.js +231 -231
- package/lib/pusher.js +210 -210
- package/lib/session.js +74 -74
- package/lib/shell.js +193 -193
- package/lib/tar-filter-pack.js +62 -62
- package/lib/util/copy.js +31 -31
- package/lib/util/createFileName.js +40 -40
- package/lib/util/eof.js +30 -30
- package/lib/util/json.js +63 -63
- package/lib/util/merge.js +14 -14
- package/lib/util/objclone.js +40 -40
- package/lib/util/spinner.js +37 -37
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/scripts/postinstall.js +24 -24
- package/spec/helpers/reporter.js +65 -65
- package/spec/jsSpecs/apiTest/generator.spec.js +372 -372
- package/spec/jsSpecs/apiTest/inspector.spec.js +89 -89
- package/spec/jsSpecs/apiTest/installer.spec.js +67 -67
- package/spec/jsSpecs/apiTest/launcher.spec.js +150 -150
- package/spec/jsSpecs/apiTest/packager.spec.js +194 -194
- package/spec/jsSpecs/apiTest/puller.spec.js +101 -101
- package/spec/jsSpecs/apiTest/pusher.spec.js +103 -103
- package/spec/jsSpecs/apiTest/server.spec.js +115 -115
- package/spec/jsSpecs/apiTest/setupDevice.spec.js +93 -93
- package/spec/jsSpecs/apiTest/shell.spec.js +49 -49
- package/spec/jsSpecs/ares-config.spec.js +88 -88
- package/spec/jsSpecs/ares-device.spec.js +443 -443
- package/spec/jsSpecs/ares-generate.spec.js +401 -397
- package/spec/jsSpecs/ares-inspect.spec.js +252 -252
- package/spec/jsSpecs/ares-install.spec.js +150 -150
- package/spec/jsSpecs/ares-launch.spec.js +303 -301
- package/spec/jsSpecs/ares-log.spec.js +824 -824
- package/spec/jsSpecs/ares-novacom.spec.js +149 -149
- package/spec/jsSpecs/ares-package.spec.js +1277 -1211
- package/spec/jsSpecs/ares-pull.spec.js +157 -157
- package/spec/jsSpecs/ares-push.spec.js +146 -146
- package/spec/jsSpecs/ares-server.spec.js +160 -160
- package/spec/jsSpecs/ares-setup-device.spec.js +299 -300
- package/spec/jsSpecs/ares-shell.spec.js +220 -220
- package/spec/jsSpecs/ares.spec.js +83 -83
- package/spec/jsSpecs/common-spec.js +177 -169
- package/spec/support/jasmine.json +22 -22
- package/spec/tempFiles/com.lg.app.signage.dev_0.0.1_all.ipk +0 -0
- package/spec/tempFiles/nativeApp/auto/pkg_arm64/appinfo.json +9 -9
- package/spec/tempFiles/nativeApp/ose/pkg_arm/appinfo.json +8 -8
- package/spec/tempFiles/nativeApp/ose/pkg_arm/package.properties +2 -2
- package/spec/tempFiles/nativeApp/oseEmul/pkg_x86/appinfo.json +9 -9
- package/spec/tempFiles/nativeApp/rsi/pkg_x86/appinfo.json +9 -9
- package/spec/tempFiles/sign/sign.crt +32 -32
- package/spec/tempFiles/sign/signPriv.key +52 -52
- package/spec/test_data/ares-generate.json +91 -58
- package/spec/test_data/ares.json +50 -50
- package/webos-tools-cli-3.2.0.tgz +0 -0
- package/webos-tools-cli-3.1.3.tgz +0 -0
package/lib/package.js
CHANGED
|
@@ -1,2149 +1,2253 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2020-2024 LG Electronics Inc.
|
|
3
|
-
*
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
const ar = require('ar-async'),
|
|
8
|
-
async = require('async'),
|
|
9
|
-
chardet = require('chardet'),
|
|
10
|
-
CombinedStream = require('combined-stream'),
|
|
11
|
-
crypto = require('crypto'),
|
|
12
|
-
decompress = require('decompress'),
|
|
13
|
-
decompressTargz = require('decompress-targz'),
|
|
14
|
-
ElfParser = require('elfy').Parser,
|
|
15
|
-
encoding = require('encoding'),
|
|
16
|
-
fs = require('fs'),
|
|
17
|
-
fstream = require('fstream'),
|
|
18
|
-
Validator = require('jsonschema').Validator,
|
|
19
|
-
mkdirp = require('mkdirp'),
|
|
20
|
-
log = require('npmlog'),
|
|
21
|
-
path = require('path'),
|
|
22
|
-
rimraf = require('rimraf'),
|
|
23
|
-
shelljs = require('shelljs'),
|
|
24
|
-
stripbom = require('strip-bom'),
|
|
25
|
-
temp = require('temp'),
|
|
26
|
-
uglify = require('terser'),
|
|
27
|
-
util = require('util'),
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
this.
|
|
61
|
-
this.
|
|
62
|
-
this.
|
|
63
|
-
this.
|
|
64
|
-
this.
|
|
65
|
-
this.
|
|
66
|
-
this.
|
|
67
|
-
this.
|
|
68
|
-
this.
|
|
69
|
-
this.
|
|
70
|
-
this.
|
|
71
|
-
this.
|
|
72
|
-
this.
|
|
73
|
-
this.
|
|
74
|
-
this.
|
|
75
|
-
this.
|
|
76
|
-
this.
|
|
77
|
-
this.
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
this.
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
if (options && Object.prototype.hasOwnProperty.call(options, '
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
this
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
ipkConfig[item].
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
ipkConfig[item].
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
this.
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
if (this.
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
const
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
const
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
next(
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
setImmediate(next);
|
|
832
|
-
} else {
|
|
833
|
-
|
|
834
|
-
}
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
if (!file.
|
|
853
|
-
log.verbose("package#copySrcToDst()#_copySrcToDst()", "ignore 'unknown
|
|
854
|
-
return
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
if (file.
|
|
858
|
-
|
|
859
|
-
return setImmediate(next);
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
fs.
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
}
|
|
904
|
-
setImmediate(next
|
|
905
|
-
})
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
log.silly("package#checkELFHeader()",
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
self.architecture =
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
//
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
if (
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
if (!(/^
|
|
1196
|
-
log.error(errHndl.getErrMsg("INVALID_VALUE", "pkg
|
|
1197
|
-
return setImmediate(next, errHndl.getErrMsg("
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
}
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
"
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
}
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
const
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
"\
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
} catch (err) {
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
if (
|
|
1838
|
-
return setImmediate(next);
|
|
1839
|
-
}
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
function
|
|
1846
|
-
if (
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
}
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
}
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
setImmediate(next);
|
|
2014
|
-
}
|
|
2015
|
-
|
|
2016
|
-
function
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
}
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2020-2024 LG Electronics Inc.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
const ar = require('ar-async'),
|
|
8
|
+
async = require('async'),
|
|
9
|
+
chardet = require('chardet'),
|
|
10
|
+
CombinedStream = require('combined-stream'),
|
|
11
|
+
crypto = require('crypto'),
|
|
12
|
+
decompress = require('decompress'),
|
|
13
|
+
decompressTargz = require('decompress-targz'),
|
|
14
|
+
ElfParser = require('elfy').Parser,
|
|
15
|
+
encoding = require('encoding'),
|
|
16
|
+
fs = require('fs'),
|
|
17
|
+
fstream = require('fstream'),
|
|
18
|
+
Validator = require('jsonschema').Validator,
|
|
19
|
+
mkdirp = require('mkdirp'),
|
|
20
|
+
log = require('npmlog'),
|
|
21
|
+
path = require('path'),
|
|
22
|
+
rimraf = require('rimraf'),
|
|
23
|
+
shelljs = require('shelljs'),
|
|
24
|
+
stripbom = require('strip-bom'),
|
|
25
|
+
temp = require('temp'),
|
|
26
|
+
uglify = require('terser'),
|
|
27
|
+
util = require('util'),
|
|
28
|
+
errHndl = require('./base/error-handler'),
|
|
29
|
+
tar = require('tar');
|
|
30
|
+
|
|
31
|
+
(function() {
|
|
32
|
+
log.heading = 'packager';
|
|
33
|
+
log.level = 'warn';
|
|
34
|
+
|
|
35
|
+
const servicePkgMethod = 'id',
|
|
36
|
+
defaultAssetsFields = {
|
|
37
|
+
"main": true,
|
|
38
|
+
"icon": true,
|
|
39
|
+
"largeIcon": true,
|
|
40
|
+
"bgImage": true,
|
|
41
|
+
"splashBackground": true,
|
|
42
|
+
"imageForRecents": true,
|
|
43
|
+
"sysAssetsBasePath": true
|
|
44
|
+
},
|
|
45
|
+
FILE_TYPE = {
|
|
46
|
+
file: 'file',
|
|
47
|
+
dir: 'dir',
|
|
48
|
+
symlink: 'symlink'
|
|
49
|
+
},
|
|
50
|
+
packager = {};
|
|
51
|
+
let objectCounter = 0;
|
|
52
|
+
|
|
53
|
+
if (typeof module !== 'undefined' && module.exports) {
|
|
54
|
+
module.exports = packager;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function Packager() {
|
|
58
|
+
this.objectId = objectCounter++;
|
|
59
|
+
this.verbose = false;
|
|
60
|
+
this.silent = true;
|
|
61
|
+
this.noclean = false;
|
|
62
|
+
this.nativecmd = false;
|
|
63
|
+
this.minify = true;
|
|
64
|
+
this.excludeFiles = [];
|
|
65
|
+
this.rom = false;
|
|
66
|
+
this.encrypt = false;
|
|
67
|
+
this.sign = null;
|
|
68
|
+
this.certificate = null;
|
|
69
|
+
this.appCount = 0;
|
|
70
|
+
this.services = [];
|
|
71
|
+
this.pkgServiceNames = [];
|
|
72
|
+
this.rscCount = 0;
|
|
73
|
+
this.resources = [];
|
|
74
|
+
this.pkgResourceNames = [];
|
|
75
|
+
this.pkgId;
|
|
76
|
+
this.pkginfofile;
|
|
77
|
+
this.remainPlainIPK = false;
|
|
78
|
+
// To check app signing
|
|
79
|
+
this.dataHash = '';
|
|
80
|
+
this.certificateHash = '';
|
|
81
|
+
this.controlSign = '';
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
packager.Packager = Packager;
|
|
85
|
+
|
|
86
|
+
Packager.prototype = {
|
|
87
|
+
prepareOptions: function(options, next) {
|
|
88
|
+
if (options && options.level) {
|
|
89
|
+
log.level = options.level;
|
|
90
|
+
if (['warn', 'error'].indexOf(options.level) !== -1) {
|
|
91
|
+
this.silent = false;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
if (options && options.noclean === true) {
|
|
96
|
+
this.noclean = true;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
if (options && options.nativecmd === true) {
|
|
100
|
+
this.nativecmd = true;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if (options && Object.prototype.hasOwnProperty.call(options, 'minify')) {
|
|
104
|
+
this.minify = options.minify;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (options && Object.prototype.hasOwnProperty.call(options, 'excludefiles')) {
|
|
108
|
+
if (options.excludefiles instanceof Array) {
|
|
109
|
+
this.excludeFiles = options.excludefiles.map(filePath => {
|
|
110
|
+
if (filePath && filePath.length)
|
|
111
|
+
filePath = filePath.replace(/(^\\|^)/i, "\\").replaceAll(/\\/gi, "\\\\");
|
|
112
|
+
return filePath;
|
|
113
|
+
});
|
|
114
|
+
} else {
|
|
115
|
+
this.excludeFiles.push(options.excludefiles);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
this.excludeFiles.forEach(function(excl_file) {
|
|
119
|
+
if (excl_file === "appinfo.json") {
|
|
120
|
+
return next(errHndl.getErrMsg("NOT_EXCLUDE_APPINFO"));
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (options && Object.prototype.hasOwnProperty.call(options, 'rom')) {
|
|
126
|
+
this.rom = options.rom;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
if (options && Object.prototype.hasOwnProperty.call(options, 'encrypt')) {
|
|
130
|
+
this.encrypt = options.encrypt;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
if (options && Object.prototype.hasOwnProperty.call(options, 'remainPlainIPK')) {
|
|
134
|
+
this.remainPlainIPK = options.remainPlainIPK;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
if (options && Object.prototype.hasOwnProperty.call(options, 'sign')) {
|
|
138
|
+
if (!fs.existsSync(path.resolve(options.sign))) {
|
|
139
|
+
return next(errHndl.getErrMsg("NOT_EXIST_PATH", options.sign));
|
|
140
|
+
}
|
|
141
|
+
this.sign = options.sign;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
if (options && Object.prototype.hasOwnProperty.call(options, 'certificate')) {
|
|
145
|
+
if (!fs.existsSync(path.resolve(options.certificate))) {
|
|
146
|
+
return next(errHndl.getErrMsg("NOT_EXIST_PATH", options.certificate));
|
|
147
|
+
}
|
|
148
|
+
this.certificate = options.certificate;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
log.verbose("package#Packager()", "Packager id:" + this.objectId);
|
|
152
|
+
|
|
153
|
+
this.pkgVersion = options.pkgversion;
|
|
154
|
+
|
|
155
|
+
if (options && Object.prototype.hasOwnProperty.call(options, 'pkgid')) {
|
|
156
|
+
this.pkgId = options.pkgid;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (options && Object.prototype.hasOwnProperty.call(options, 'pkginfofile')) {
|
|
160
|
+
this.pkginfofile = options.pkginfofile;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
if (this.pkgId && this.pkginfofile) {
|
|
164
|
+
return next(errHndl.getErrMsg("NOT_USE_WITH_OPTIONS", "pkginfofile, pkgid"));
|
|
165
|
+
}
|
|
166
|
+
this.appCount = 0;
|
|
167
|
+
},
|
|
168
|
+
checkInputDirectories: function(inDirs, options, next) {
|
|
169
|
+
log.verbose("package#Packager#checkInputDirectories()", "input directory:", inDirs);
|
|
170
|
+
this.prepareOptions(options, next);
|
|
171
|
+
|
|
172
|
+
async.forEachSeries(inDirs, checkDirectory.bind(this, options), function(err) {
|
|
173
|
+
if (err) {
|
|
174
|
+
setImmediate(next, err);
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
setImmediate(next);
|
|
178
|
+
});
|
|
179
|
+
return {app: this.appCount, resource: this.rscCount};
|
|
180
|
+
},
|
|
181
|
+
servicePackaging: function(inDirs, destination, options, middleCb, next) {
|
|
182
|
+
log.info("package#Packager#servicePackaging()");
|
|
183
|
+
|
|
184
|
+
if (!Object.hasOwnProperty.call(options, 'pkgid') && !Object.hasOwnProperty.call(options, 'pkginfofile')) {
|
|
185
|
+
return next(errHndl.getErrMsg("USE_PKGID_PKGINFO"));
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
async.series([
|
|
189
|
+
this.checkInputDirectories.bind(this, inDirs, options),
|
|
190
|
+
setUmask.bind(this, 0),
|
|
191
|
+
loadPkgInfo.bind(this),
|
|
192
|
+
createTmpDir.bind(this),
|
|
193
|
+
excludeIpkFileFromApp.bind(this),
|
|
194
|
+
createPackageDir.bind(this),
|
|
195
|
+
fillPackageDir.bind(this),
|
|
196
|
+
findServiceDir.bind(this, this.services),
|
|
197
|
+
loadServiceInfo.bind(this),
|
|
198
|
+
checkServiceInfo.bind(this),
|
|
199
|
+
createServiceDir.bind(this),
|
|
200
|
+
copyService.bind(this),
|
|
201
|
+
addServiceInPkgInfo.bind(this),
|
|
202
|
+
copyData.bind(this, inDirs, options.force),
|
|
203
|
+
loadPackageProperties.bind(this, inDirs),
|
|
204
|
+
excludeFromApp.bind(this, middleCb),
|
|
205
|
+
outputPackage.bind(this, destination),
|
|
206
|
+
encryptPackage.bind(this),
|
|
207
|
+
copyOutputToDst.bind(this, destination, middleCb),
|
|
208
|
+
recoverUmask.bind(this),
|
|
209
|
+
cleanupTmpDir.bind(this, middleCb)
|
|
210
|
+
], function(err) {
|
|
211
|
+
if (err) {
|
|
212
|
+
// TODO: call cleanupTmpDir() before returning
|
|
213
|
+
setImmediate(next, err);
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
// TODO: probably some more checkings are needed
|
|
217
|
+
setImmediate(next, null, {ipk: this.ipk, msg: "Success"});
|
|
218
|
+
}.bind(this));
|
|
219
|
+
},
|
|
220
|
+
resourcePackaging: function(inDirs, destination, options, middleCb, next) {
|
|
221
|
+
log.info("package#Packager#resourcePackaging()");
|
|
222
|
+
this.dataCopyCount = 0;
|
|
223
|
+
async.series([
|
|
224
|
+
this.checkInputDirectories.bind(this, inDirs, options),
|
|
225
|
+
setUmask.bind(this, 0),
|
|
226
|
+
loadPkgInfo.bind(this),
|
|
227
|
+
createTmpDir.bind(this),
|
|
228
|
+
excludeIpkFileFromApp.bind(this),
|
|
229
|
+
createPackageDir.bind(this),
|
|
230
|
+
fillPackageDir.bind(this),
|
|
231
|
+
loadResourceInfo.bind(this),
|
|
232
|
+
checkResourceInfo.bind(this),
|
|
233
|
+
createResourceDir.bind(this),
|
|
234
|
+
copyResource.bind(this),
|
|
235
|
+
addResourceInPkgInfo.bind(this),
|
|
236
|
+
copyData.bind(this, inDirs, options.force),
|
|
237
|
+
loadPackageProperties.bind(this, inDirs),
|
|
238
|
+
excludeFromApp.bind(this, middleCb),
|
|
239
|
+
outputPackage.bind(this, destination),
|
|
240
|
+
encryptPackage.bind(this),
|
|
241
|
+
copyOutputToDst.bind(this, destination, middleCb),
|
|
242
|
+
recoverUmask.bind(this),
|
|
243
|
+
cleanupTmpDir.bind(this, middleCb)
|
|
244
|
+
], function(err) {
|
|
245
|
+
if (err) {
|
|
246
|
+
setImmediate(next, err);
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
setImmediate(next, null, {ipk: this.ipk, msg: "Success"});
|
|
250
|
+
}.bind(this));
|
|
251
|
+
},
|
|
252
|
+
generatePackage: function(inDirs, destination, options, middleCb, next) {
|
|
253
|
+
log.info("package#Packager#generatePackage()", "from ", inDirs);
|
|
254
|
+
// check whether app or service directories are copied or not
|
|
255
|
+
this.dataCopyCount = 0;
|
|
256
|
+
this.minifyDone = !this.minify;
|
|
257
|
+
|
|
258
|
+
async.series([
|
|
259
|
+
this.checkInputDirectories.bind(this, inDirs, options),
|
|
260
|
+
setUmask.bind(this, 0),
|
|
261
|
+
loadPkgInfo.bind(this),
|
|
262
|
+
loadAppInfo.bind(this),
|
|
263
|
+
checkAppInfo.bind(this),
|
|
264
|
+
createTmpDir.bind(this),
|
|
265
|
+
createAppDir.bind(this),
|
|
266
|
+
checkELFHeader.bind(this),
|
|
267
|
+
fillAssetsField.bind(this),
|
|
268
|
+
copyAssets.bind(this),
|
|
269
|
+
copyApp.bind(this),
|
|
270
|
+
excludeIpkFileFromApp.bind(this),
|
|
271
|
+
createPackageDir.bind(this),
|
|
272
|
+
fillPackageDir.bind(this),
|
|
273
|
+
findServiceDir.bind(this, this.services),
|
|
274
|
+
loadServiceInfo.bind(this),
|
|
275
|
+
checkServiceInfo.bind(this),
|
|
276
|
+
createServiceDir.bind(this),
|
|
277
|
+
copyService.bind(this),
|
|
278
|
+
addServiceInPkgInfo.bind(this),
|
|
279
|
+
removeServiceFromAppDir.bind(this, middleCb),
|
|
280
|
+
copyData.bind(this, inDirs, options.force),
|
|
281
|
+
loadPackageProperties.bind(this, inDirs),
|
|
282
|
+
excludeFromApp.bind(this, middleCb),
|
|
283
|
+
outputPackage.bind(this, destination),
|
|
284
|
+
encryptPackage.bind(this),
|
|
285
|
+
copyOutputToDst.bind(this, destination, middleCb),
|
|
286
|
+
recoverUmask.bind(this),
|
|
287
|
+
cleanupTmpDir.bind(this, middleCb)
|
|
288
|
+
], function(err) {
|
|
289
|
+
if (err) {
|
|
290
|
+
// TODO: call cleanupTmpDir() before returning
|
|
291
|
+
setImmediate(next, err);
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
// TODO: probably some more checkings are needed
|
|
295
|
+
setImmediate(next, null, {ipk: this.ipk, msg: "Success"});
|
|
296
|
+
}.bind(this));
|
|
297
|
+
},
|
|
298
|
+
analyzeIPK: function(options, next) {
|
|
299
|
+
log.info("package#Packager#analyzeIPK()");
|
|
300
|
+
let ipkConfigFile, ipkFile, ipkConfig, tmpDirPath;
|
|
301
|
+
this.prepareOptions(options);
|
|
302
|
+
|
|
303
|
+
async.series([
|
|
304
|
+
_setConfig,
|
|
305
|
+
_unpackIpk,
|
|
306
|
+
_unpackTar,
|
|
307
|
+
_analyzeMetaFile,
|
|
308
|
+
_removeTmpDir,
|
|
309
|
+
], function(err, results) {
|
|
310
|
+
log.silly("package#analyzeIPK()", "err:", err, ", results:", results);
|
|
311
|
+
if (err) {
|
|
312
|
+
return next(err);
|
|
313
|
+
}
|
|
314
|
+
return next(null, {msg: results[3].trim()});
|
|
315
|
+
});
|
|
316
|
+
|
|
317
|
+
function _setConfig(next) {
|
|
318
|
+
log.info("package#analyzeIPK()#_setConfig()");
|
|
319
|
+
if (options.info === 'true') {
|
|
320
|
+
return next(errHndl.getErrMsg("EMPTY_VALUE", 'info'));
|
|
321
|
+
} else if (options.infodetail === 'true') {
|
|
322
|
+
return next(errHndl.getErrMsg("EMPTY_VALUE", 'info-detail'));
|
|
323
|
+
}
|
|
324
|
+
ipkFile = options.info ? options.info : options.infodetail;
|
|
325
|
+
ipkConfigFile = path.resolve(__dirname, "../files/conf/ipk.json");
|
|
326
|
+
|
|
327
|
+
if (path.extname(ipkFile) !== ".ipk") {
|
|
328
|
+
return next(errHndl.getErrMsg("SUPPORT_ONLY_IPK", ipkFile));
|
|
329
|
+
}
|
|
330
|
+
if (!fs.existsSync(ipkFile)) {
|
|
331
|
+
return next(errHndl.getErrMsg("NOT_EXIST_PATH", ipkFile));
|
|
332
|
+
}
|
|
333
|
+
if (!fs.existsSync(ipkConfigFile)) {
|
|
334
|
+
return next(errHndl.getErrMsg("NOT_EXIST_PATH", ipkConfigFile));
|
|
335
|
+
}
|
|
336
|
+
ipkConfig = JSON.parse(fs.readFileSync(ipkConfigFile));
|
|
337
|
+
tmpDirPath = temp.path(ipkConfig.tmpPath);
|
|
338
|
+
|
|
339
|
+
if (!fs.existsSync(tmpDirPath)) {
|
|
340
|
+
fs.mkdirSync(tmpDirPath);
|
|
341
|
+
}
|
|
342
|
+
next();
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
function _unpackIpk(next) {
|
|
346
|
+
log.info("package#analyzeIPK()#_unpackIpk()");
|
|
347
|
+
const reader = new ar.ArReader(ipkFile);
|
|
348
|
+
|
|
349
|
+
reader.on("entry", function(entry, next) {
|
|
350
|
+
const name = entry.fileName();
|
|
351
|
+
entry.fileData()
|
|
352
|
+
.pipe(fs.createWriteStream(path.resolve(tmpDirPath, name)))
|
|
353
|
+
.on("finish", next);
|
|
354
|
+
});
|
|
355
|
+
reader.on("error", function(err) {
|
|
356
|
+
return next(err);
|
|
357
|
+
});
|
|
358
|
+
reader.on("close", function() {
|
|
359
|
+
log.verbose("package#analyzeIPK()#_unpackIpk()", "unpack ipk close");
|
|
360
|
+
next();
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
function _unpackTar(next) {
|
|
365
|
+
log.info("package#analyzeIPK()#_unpackTar()");
|
|
366
|
+
if (fs.existsSync(path.resolve(tmpDirPath, "control.tar.gz"))) {
|
|
367
|
+
(async function() {
|
|
368
|
+
await decompress(path.resolve(tmpDirPath, "control.tar.gz"), tmpDirPath, {
|
|
369
|
+
plugins: [
|
|
370
|
+
decompressTargz()
|
|
371
|
+
]
|
|
372
|
+
});
|
|
373
|
+
log.verbose("package#analyzeIPK()#_unpackTar()", "control.tar.gz decompressed");
|
|
374
|
+
})();
|
|
375
|
+
} else if (fs.existsSync(path.resolve(tmpDirPath, "control.tar.xz"))) {
|
|
376
|
+
return next(errHndl.getErrMsg("NOT_SUPPORT_XZ"));
|
|
377
|
+
} else {
|
|
378
|
+
return next(errHndl.getErrMsg("NO_COMPONENT_FILE", ", control tar file"));
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
if (fs.existsSync(path.resolve(tmpDirPath, "data.tar.gz"))) {
|
|
382
|
+
(async function() {
|
|
383
|
+
await decompress(path.resolve(tmpDirPath, "data.tar.gz"), tmpDirPath, {
|
|
384
|
+
plugins: [
|
|
385
|
+
decompressTargz()
|
|
386
|
+
]
|
|
387
|
+
});
|
|
388
|
+
log.verbose("package#analyzeIPK()#_unpackTar()", "data.tar.gz decompressed");
|
|
389
|
+
next();
|
|
390
|
+
})();
|
|
391
|
+
} else if (fs.existsSync(path.resolve(tmpDirPath, "data.tar.xz"))) {
|
|
392
|
+
return next(errHndl.getErrMsg("NOT_SUPPORT_XZ"));
|
|
393
|
+
} else {
|
|
394
|
+
return next(errHndl.getErrMsg("NO_COMPONENT_FILE", "data tar file"));
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
function _analyzeMetaFile(next) {
|
|
399
|
+
log.info("package#analyzeIPK()#_analyzeMetaFile()");
|
|
400
|
+
let result = "", targetFile, tmpTxt;
|
|
401
|
+
|
|
402
|
+
ipkConfig.webOSMetaFiles.forEach(function(item) {
|
|
403
|
+
const targetPath = path.resolve(tmpDirPath, ipkConfig[item].path);
|
|
404
|
+
// Analyze control file
|
|
405
|
+
if (item === "control") {
|
|
406
|
+
targetFile = path.resolve(targetPath, ipkConfig[item].fileName);
|
|
407
|
+
if (!fs.existsSync(targetFile)) {
|
|
408
|
+
return next(errHndl.getErrMsg("NO_COMPONENT_FILE", "control file"));
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
if (options.infodetail) {
|
|
412
|
+
result = "\n\n< " + ipkConfig[item].fileName + " >\n";
|
|
413
|
+
result += fs.readFileSync(targetFile).toString().trim();
|
|
414
|
+
} else {
|
|
415
|
+
result = ipkConfig[item].heading + "\n";
|
|
416
|
+
tmpTxt = fs.readFileSync(targetFile).toString().trim();
|
|
417
|
+
ipkConfig[item].info.forEach(function(field) {
|
|
418
|
+
if (tmpTxt.match(new RegExp(field + ": (.*)", "gi"))) {
|
|
419
|
+
result += tmpTxt.match(new RegExp(field + ": (.*)", "gi"))[0] + "\n";
|
|
420
|
+
}
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
// Analyze appinfo.json, packageinfo.json, services.json, package.json files
|
|
424
|
+
} else if (fs.existsSync(targetPath)) {
|
|
425
|
+
const dirArr = fs.readdirSync(targetPath);
|
|
426
|
+
let beforeDir = dirArr[0];
|
|
427
|
+
|
|
428
|
+
dirArr.forEach(function(dir) {
|
|
429
|
+
if (ipkConfig[item].fileName) {
|
|
430
|
+
ipkConfig[item].fileName.forEach(function(file) {
|
|
431
|
+
targetFile = path.resolve(targetPath, dir, file);
|
|
432
|
+
if (fs.existsSync(targetFile)) {
|
|
433
|
+
if (options.infodetail) {
|
|
434
|
+
result += "\n\n< " + file + " >\n";
|
|
435
|
+
result += fs.readFileSync(targetFile).toString().trim();
|
|
436
|
+
} else {
|
|
437
|
+
if (ipkConfig[item].heading && beforeDir !== path.join(ipkConfig[item].path, dir)) {
|
|
438
|
+
result += "\n" + ipkConfig[item].heading + "\n";
|
|
439
|
+
}
|
|
440
|
+
tmpTxt = fs.readFileSync(targetFile).toString().trim();
|
|
441
|
+
const tmpJson = JSON.parse(tmpTxt);
|
|
442
|
+
ipkConfig[item].info.forEach(function(field) {
|
|
443
|
+
if (tmpJson[field]) {
|
|
444
|
+
const fieldValue = tmpJson[field];
|
|
445
|
+
if (typeof fieldValue === "object") {
|
|
446
|
+
if (ipkConfig[item][field]) { // Case of services.json, services_name field
|
|
447
|
+
const subField = ipkConfig[item][field],
|
|
448
|
+
subResult = [];
|
|
449
|
+
fieldValue.forEach(function(subItem) {
|
|
450
|
+
subResult.push(subItem[subField]);
|
|
451
|
+
});
|
|
452
|
+
result += field + ": " + JSON.stringify(subResult) + "\n";
|
|
453
|
+
} else { // Case of packageinfo.json, services field
|
|
454
|
+
result += field + ": " + JSON.stringify(fieldValue) + "\n";
|
|
455
|
+
}
|
|
456
|
+
} else {
|
|
457
|
+
result += field + ": " + fieldValue + "\n";
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
});
|
|
461
|
+
beforeDir = path.join(ipkConfig[item].path, dir);
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
});
|
|
469
|
+
next(null, result);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
function _removeTmpDir(next) {
|
|
473
|
+
log.info("package#analyzeIPK()#_removeTmpDir()");
|
|
474
|
+
rimraf(tmpDirPath, function(err) {
|
|
475
|
+
log.verbose("package#analyzeIPK()#_removeTmpDir()", "removed " + tmpDirPath);
|
|
476
|
+
next(err);
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
};
|
|
481
|
+
|
|
482
|
+
function Service() {
|
|
483
|
+
this.srcDir = "";
|
|
484
|
+
this.dstDirs = [];
|
|
485
|
+
this.valid = false;
|
|
486
|
+
this.serviceInfo = "";
|
|
487
|
+
this.dirName = "";
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
// Private functions
|
|
491
|
+
function loadPkgInfo(next) {
|
|
492
|
+
log.verbose("loadPkgInfo");
|
|
493
|
+
let data;
|
|
494
|
+
|
|
495
|
+
if (this.pkginfofile) {
|
|
496
|
+
log.silly("Use pkginfofile option");
|
|
497
|
+
if (fs.existsSync(this.pkginfofile)) {
|
|
498
|
+
if ("packageinfo.json" !== path.basename(this.pkginfofile)) {
|
|
499
|
+
return setImmediate(next, errHndl.getErrMsg("INVALID_FILE", "packageinfo.json"));
|
|
500
|
+
}
|
|
501
|
+
data = rewriteFileWoBOMAsUtf8(this.pkginfofile, true);
|
|
502
|
+
try {
|
|
503
|
+
log.verbose("PKGINFO >>" + data + "<<");
|
|
504
|
+
this.pkginfo = JSON.parse(data);
|
|
505
|
+
|
|
506
|
+
if (!Object.prototype.hasOwnProperty.call(this.pkginfo, 'id')) {
|
|
507
|
+
return setImmediate(next, errHndl.getErrMsg("REQUIRED_FIELD", "id"));
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
this.pkgId = this.pkginfo.id;
|
|
511
|
+
this.pkgVersion = this.pkgVersion || this.pkginfo.version;
|
|
512
|
+
setImmediate(next);
|
|
513
|
+
}
|
|
514
|
+
catch (err) {
|
|
515
|
+
return setImmediate(next, errHndl.getErrMsg("INVALID_JSON_FORMAT", "packageinfo.json"));
|
|
516
|
+
}
|
|
517
|
+
} else {
|
|
518
|
+
return setImmediate(next, errHndl.getErrMsg("NOT_EXIST_PATH", this.pkginfofile));
|
|
519
|
+
}
|
|
520
|
+
} else if (this.pkgDir) {
|
|
521
|
+
log.silly("Use packageinfo.json from PKG_DIR");
|
|
522
|
+
data = rewriteFileWoBOMAsUtf8(path.join(this.pkgDir, "packageinfo.json"));
|
|
523
|
+
try {
|
|
524
|
+
log.verbose("PKGINFO >>" + data + "<<");
|
|
525
|
+
this.pkginfo = JSON.parse(data);
|
|
526
|
+
|
|
527
|
+
if (!Object.prototype.hasOwnProperty.call(this.pkginfo, 'id')) {
|
|
528
|
+
return setImmediate(next, errHndl.getErrMsg("REQUIRED_FIELD", "id"));
|
|
529
|
+
}
|
|
530
|
+
this.pkgId = this.pkginfo.id;
|
|
531
|
+
this.pkgVersion = this.pkgVersion || this.pkginfo.version;
|
|
532
|
+
setImmediate(next);
|
|
533
|
+
}
|
|
534
|
+
catch (err) {
|
|
535
|
+
return setImmediate(next, errHndl.getErrMsg("INVALID_JSON_FORMAT", "packageinfo.json"));
|
|
536
|
+
}
|
|
537
|
+
} else {
|
|
538
|
+
return setImmediate(next);
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
function loadAppInfo(next) {
|
|
543
|
+
log.verbose("loadAppInfo");
|
|
544
|
+
if (this.appCount === 0) {
|
|
545
|
+
return setImmediate(next);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
const filepath = path.join(this.appDir, "appinfo.json"),
|
|
549
|
+
data = rewriteFileWoBOMAsUtf8(filepath, true);
|
|
550
|
+
try {
|
|
551
|
+
this.appinfo = JSON.parse(data);
|
|
552
|
+
log.silly("package#loadAppInfo()", "content of appinfo.json:", this.appinfo);
|
|
553
|
+
|
|
554
|
+
if (!this.appinfo.version || this.appinfo.version === undefined) {
|
|
555
|
+
this.appinfo.version = "1.0.0";
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
this.pkgVersion = this.pkgVersion || this.appinfo.version;
|
|
559
|
+
setImmediate(next);
|
|
560
|
+
} catch(err) {
|
|
561
|
+
setImmediate(next, err);
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
function checkAppInfo(next) {
|
|
566
|
+
if (this.appCount === 0) {
|
|
567
|
+
return setImmediate(next);
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
// check enyo app
|
|
571
|
+
if (this.pkgJSExist && this.appinfo.main && this.appinfo.main.match(/(\.html|\.htm)$/gi)) {
|
|
572
|
+
const mainFile = path.join(this.appDir, this.appinfo.main);
|
|
573
|
+
if (!fs.existsSync(mainFile)) {
|
|
574
|
+
return setImmediate(next, errHndl.getErrMsg("NOT_EXIST_PATH", this.appinfo.main));
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
const regex = new RegExp("(<script[^>]*src[ \t]*=[ \t]*['\"])[^'\"]*/enyo.js(['\"])"),
|
|
578
|
+
data = fs.readFileSync(mainFile);
|
|
579
|
+
if (data.toString().match(regex)) {
|
|
580
|
+
// If enyo app, stop packaging.
|
|
581
|
+
return setImmediate(next, errHndl.getErrMsg("NOT_SUPPORT_ENYO"));
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
if (!this.appinfo.id || this.appinfo.id === undefined) {
|
|
586
|
+
return setImmediate(next, errHndl.getErrMsg("REQUIRED_FIELD", "id"));
|
|
587
|
+
}
|
|
588
|
+
if (this.appinfo.id.length < 1 || !(/^[a-z0-9.+-]*$/.test(this.appinfo.id))) {
|
|
589
|
+
log.error(errHndl.getErrMsg("INVALID_VALUE", "id", this.appinfo.id));
|
|
590
|
+
return setImmediate(next, errHndl.getErrMsg("INVALID_ID_RULE"));
|
|
591
|
+
}
|
|
592
|
+
if (this.pkgId && this.appinfo.id.indexOf(this.pkgId) !== 0) {
|
|
593
|
+
log.error(errHndl.getErrMsg("INVALID_VALUE", "id", this.appinfo.id));
|
|
594
|
+
return setImmediate(next, errHndl.getErrMsg("INVALID_APPID", this.pkgId));
|
|
595
|
+
}
|
|
596
|
+
if (!this.appinfo.version || this.appinfo.version === undefined) {
|
|
597
|
+
return setImmediate(next, errHndl.getErrMsg("REQUIRED_FIELD", "version"));
|
|
598
|
+
}
|
|
599
|
+
if (this.appinfo.version.length < 1 || !(/^([1-9]\d{0,8}|\d)\.([1-9]\d{0,8}|\d)\.([1-9]\d{0,8}|\d)$/.test(this.appinfo.version))) {
|
|
600
|
+
log.error(errHndl.getErrMsg("INVALID_VALUE", "version", this.appinfo.version));
|
|
601
|
+
return setImmediate(next, errHndl.getErrMsg("INVALID_VERSION_RULE"));
|
|
602
|
+
}
|
|
603
|
+
if (this.appinfo.type && this.appinfo.type.match(/clock/gi)) {
|
|
604
|
+
return setImmediate(next);
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
const schemaFile = path.resolve(__dirname, "../files/schema/ApplicationDescription.schema");
|
|
608
|
+
async.waterfall([
|
|
609
|
+
fs.readFile.bind(this, schemaFile, "utf-8"),
|
|
610
|
+
function getSchema(data, next) {
|
|
611
|
+
try {
|
|
612
|
+
const schema = JSON.parse(data);
|
|
613
|
+
/* "required" keyword is redefined in draft 4.
|
|
614
|
+
But current jsonschema lib support only draft 3.
|
|
615
|
+
So this line changes "required" attribute according to the draft 3.
|
|
616
|
+
*/
|
|
617
|
+
const reqKeys = schema.required;
|
|
618
|
+
if (reqKeys) {
|
|
619
|
+
for (const key in schema.properties) {
|
|
620
|
+
if (reqKeys.indexOf(key) !== -1) {
|
|
621
|
+
schema.properties[key].required = true;
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
next(null, schema);
|
|
626
|
+
} catch(err) {
|
|
627
|
+
next(errHndl.getErrMsg("INVALID_JSON_FORMAT", "AppDescription schema"));
|
|
628
|
+
}
|
|
629
|
+
},
|
|
630
|
+
function checkValid(schema, next) {
|
|
631
|
+
try {
|
|
632
|
+
next(null, new Validator().validate(this.appinfo, schema));
|
|
633
|
+
} catch (err) {
|
|
634
|
+
log.error(err);
|
|
635
|
+
next(errHndl.getErrMsg("INVALID_JSON_FORMAT"));
|
|
636
|
+
}
|
|
637
|
+
}.bind(this)
|
|
638
|
+
], function(err, result) {
|
|
639
|
+
if (err) {
|
|
640
|
+
setImmediate(next, err);
|
|
641
|
+
} else {
|
|
642
|
+
if (result && result.errors.length > 0) {
|
|
643
|
+
const errFile = "appinfo.json";
|
|
644
|
+
let errMsg = "";
|
|
645
|
+
for (const idx in result.errors) {
|
|
646
|
+
let errMsgLine = result.errors[idx].property + " " + result.errors[idx].message;
|
|
647
|
+
if (errMsgLine.indexOf("instance.") > -1) {
|
|
648
|
+
errMsgLine = errMsgLine.substring("instance.".length);
|
|
649
|
+
errMsg = errMsg.concat("\n");
|
|
650
|
+
errMsg = errMsg.concat(errMsgLine);
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
errMsg = errHndl.getErrMsg("INVALID_FILE", errFile, errMsg);
|
|
654
|
+
return setImmediate(next, errMsg);
|
|
655
|
+
} else {
|
|
656
|
+
log.verbose("package#checkAppInfo()", "APPINFO is valid");
|
|
657
|
+
}
|
|
658
|
+
setImmediate(next);
|
|
659
|
+
}
|
|
660
|
+
});
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
function fillAssetsField(next) {
|
|
664
|
+
if (this.appCount === 0) {
|
|
665
|
+
return setImmediate(next);
|
|
666
|
+
}
|
|
667
|
+
// make appinfo.assets to have default values so that they can be copied into the package
|
|
668
|
+
this.appinfo.assets = this.appinfo.assets || [];
|
|
669
|
+
for (const i in this.appinfo) {
|
|
670
|
+
if (Object.prototype.hasOwnProperty.call(this.appinfo, i) && defaultAssetsFields[i]) {
|
|
671
|
+
// no duplicated adding & value should not null string & file/dir should exist
|
|
672
|
+
if ((this.appinfo.assets.indexOf(this.appinfo[i]) === -1) && this.appinfo[i]) {
|
|
673
|
+
this.appinfo.assets.push(this.appinfo[i]);
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
// refer to appinfo.json files in localization directory.
|
|
679
|
+
const appInfoPath = this.originAppDir,
|
|
680
|
+
checkDir = path.join(this.originAppDir, "resources"),
|
|
681
|
+
foundFilePath = [],
|
|
682
|
+
resourcesAssets = [];
|
|
683
|
+
|
|
684
|
+
try {
|
|
685
|
+
const stat = fs.lstatSync(checkDir);
|
|
686
|
+
if (!stat.isDirectory()) {
|
|
687
|
+
return setImmediate(next, null);
|
|
688
|
+
}
|
|
689
|
+
} catch(err) {
|
|
690
|
+
if (err.code === "ENOENT") {
|
|
691
|
+
return setImmediate(next, null);
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
async.series([
|
|
696
|
+
walkFolder.bind(null, checkDir, "appinfo.json", foundFilePath, 1),
|
|
697
|
+
function(next) {
|
|
698
|
+
async.forEach(foundFilePath, function(filePath, next) {
|
|
699
|
+
rewriteFileWoBOMAsUtf8(filePath, true, function(err, data) {
|
|
700
|
+
try {
|
|
701
|
+
const appInfo = JSON.parse(data),
|
|
702
|
+
dirPath = path.dirname(filePath);
|
|
703
|
+
for (const i in appInfo) {
|
|
704
|
+
if (Object.prototype.hasOwnProperty.call(appInfo, i) && defaultAssetsFields[i]) {
|
|
705
|
+
if (appInfo[i]) {
|
|
706
|
+
const itemPath = path.join(dirPath, appInfo[i]),
|
|
707
|
+
relPath = path.relative(appInfoPath, itemPath);
|
|
708
|
+
// no duplicated adding & value should not null string & file/dir should exist
|
|
709
|
+
if ((resourcesAssets.indexOf(relPath) === -1)) {
|
|
710
|
+
resourcesAssets.push(relPath);
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
setImmediate(next, null);
|
|
716
|
+
} catch(error) {
|
|
717
|
+
setImmediate(next, errHndl.getErrMsg("INVALID_JSON_FORMAT", filePath));
|
|
718
|
+
}
|
|
719
|
+
});
|
|
720
|
+
}, function(err) {
|
|
721
|
+
setImmediate(next, err);
|
|
722
|
+
});
|
|
723
|
+
},
|
|
724
|
+
function(next) {
|
|
725
|
+
this.appinfo.assets = this.appinfo.assets.concat(resourcesAssets);
|
|
726
|
+
setImmediate(next, null);
|
|
727
|
+
}.bind(this)
|
|
728
|
+
], function(err) {
|
|
729
|
+
setImmediate(next, err);
|
|
730
|
+
});
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
function createTmpDir(next) {
|
|
734
|
+
this.tempDir = temp.path({prefix: 'com.palm.ares.hermes.bdOpenwebOS'}) + '.d';
|
|
735
|
+
log.verbose("package#createTmpDir()", "temp dir:", this.tempDir);
|
|
736
|
+
mkdirp(this.tempDir, next);
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
function createAppDir(next) {
|
|
740
|
+
if (this.appCount === 0) {
|
|
741
|
+
return setImmediate(next);
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
try {
|
|
745
|
+
this.applicationDir = path.resolve(this.tempDir, "data/usr/palm/applications", this.appinfo.id);
|
|
746
|
+
log.info("package#createAppDir()", "application dir:" + this.applicationDir);
|
|
747
|
+
mkdirp(this.applicationDir, next);
|
|
748
|
+
} catch (err) {
|
|
749
|
+
return setImmediate(next, err);
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
function copySrcToDst(src, dst, next) {
|
|
754
|
+
const fileList = [],
|
|
755
|
+
self = this,
|
|
756
|
+
requireMinify = !!((!!self.minify && !self.minifyDone));
|
|
757
|
+
src = path.normalize(path.resolve(src));
|
|
758
|
+
dst = path.normalize(path.resolve(dst));
|
|
759
|
+
|
|
760
|
+
async.series([
|
|
761
|
+
function(next) {
|
|
762
|
+
const stat = fs.statSync(src);
|
|
763
|
+
if (stat.isFile()) {
|
|
764
|
+
_pushList(fileList, 'file', path.dirname(src), path.basename(src), true, null);
|
|
765
|
+
setImmediate(next);
|
|
766
|
+
} else {
|
|
767
|
+
_getFileList(src, src, fileList, next);
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
_copySrcToDst.bind(null, fileList, dst, requireMinify)
|
|
771
|
+
], function(err) {
|
|
772
|
+
next(err);
|
|
773
|
+
});
|
|
774
|
+
|
|
775
|
+
function _pushList(list, type, basePath, relPath, isSubPath, indRelPath) {
|
|
776
|
+
if (!FILE_TYPE[type]) {
|
|
777
|
+
return;
|
|
778
|
+
}
|
|
779
|
+
list.push({
|
|
780
|
+
type: type,
|
|
781
|
+
basePath: basePath,
|
|
782
|
+
relPath: relPath,
|
|
783
|
+
isSubPath: isSubPath,
|
|
784
|
+
indRelPath: indRelPath
|
|
785
|
+
});
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
function _getFileList(dirPath, basePath, files, next) {
|
|
789
|
+
// TODO: the following code should be more concise.
|
|
790
|
+
// Handling symbolic links
|
|
791
|
+
// if the path sym-link indicates is a sub-path of source directory, treat a sym-link as it is.
|
|
792
|
+
// otherwise the files sym-link indicates should be copied
|
|
793
|
+
async.waterfall([
|
|
794
|
+
fs.readdir.bind(null, dirPath),
|
|
795
|
+
function(fileNames, next) {
|
|
796
|
+
if (fileNames.length === 0) {
|
|
797
|
+
_pushList(files, 'dir', basePath, path.relative(basePath, dirPath), true, null);
|
|
798
|
+
return setImmediate(next);
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
async.forEachSeries(fileNames, function(fileName, next) {
|
|
802
|
+
const filePath = path.join(dirPath, fileName),
|
|
803
|
+
relPath = path.relative(basePath, filePath);
|
|
804
|
+
|
|
805
|
+
async.waterfall([
|
|
806
|
+
fs.lstat.bind(null, filePath),
|
|
807
|
+
function(lstat, next) {
|
|
808
|
+
if (lstat.isSymbolicLink()) {
|
|
809
|
+
let indicateFullPath;
|
|
810
|
+
try {
|
|
811
|
+
indicateFullPath = fs.realpathSync(filePath);
|
|
812
|
+
} catch (err) {
|
|
813
|
+
if (err.code === 'ENOENT') {
|
|
814
|
+
log.warn("The file for symbolic link (" + filePath + ") is missing...");
|
|
815
|
+
return setImmediate(next);
|
|
816
|
+
}
|
|
817
|
+
return setImmediate(next, err);
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
const indicateRelPath = fs.readlinkSync(filePath);
|
|
821
|
+
if (indicateFullPath.indexOf(basePath) !== -1) {
|
|
822
|
+
_pushList(files, 'symlink', basePath, relPath, true, indicateRelPath);
|
|
823
|
+
} else {
|
|
824
|
+
const stat = fs.statSync(filePath);
|
|
825
|
+
if (stat.isDirectory()) {
|
|
826
|
+
return _getFileList(filePath, basePath, files, next);
|
|
827
|
+
} else if (stat.isFile()) {
|
|
828
|
+
_pushList(files, 'file', basePath, relPath, true, null);
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
setImmediate(next);
|
|
832
|
+
} else if (lstat.isDirectory()) {
|
|
833
|
+
return _getFileList(filePath, basePath, files, next);
|
|
834
|
+
} else if (lstat.isFile()) {
|
|
835
|
+
_pushList(files, 'file', basePath, relPath, true, null);
|
|
836
|
+
setImmediate(next);
|
|
837
|
+
} else {
|
|
838
|
+
setImmediate(next);
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
], next); // async.waterfall
|
|
842
|
+
}, next); // async.forEach
|
|
843
|
+
}
|
|
844
|
+
], function(err) {
|
|
845
|
+
return setImmediate(next, err);
|
|
846
|
+
}); // async.waterfall
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
function _copySrcToDst(files, dstPath, minify, next) {
|
|
850
|
+
try {
|
|
851
|
+
async.forEachSeries(files, function(file, next) {
|
|
852
|
+
if (!FILE_TYPE[file.type]) {
|
|
853
|
+
log.verbose("package#copySrcToDst()#_copySrcToDst()", "ignore 'unknown file type'("+file.type+")");
|
|
854
|
+
return;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
if (!file.relPath) {
|
|
858
|
+
log.verbose("package#copySrcToDst()#_copySrcToDst()", "ignore 'unknown path'");
|
|
859
|
+
return setImmediate(next);
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
if (file.type === FILE_TYPE.dir) {
|
|
863
|
+
mkdirp.sync(path.join(dstPath, file.relPath));
|
|
864
|
+
return setImmediate(next);
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
const dstDirPath = path.dirname(path.join(dstPath, file.relPath));
|
|
868
|
+
if (!fs.existsSync(dstDirPath)) {
|
|
869
|
+
mkdirp.sync(dstDirPath);
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
if (file.type === FILE_TYPE.symlink) {
|
|
873
|
+
if (file.isSubPath && file.indRelPath) {
|
|
874
|
+
const linkFile = path.join(dstPath, file.relPath);
|
|
875
|
+
if (fs.existsSync(linkFile)) {
|
|
876
|
+
if (fs.lstatSync(linkFile).isSymbolicLink()) {
|
|
877
|
+
fs.unlinkSync(linkFile);
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
fs.symlinkSync(file.indRelPath, linkFile, null);
|
|
881
|
+
}
|
|
882
|
+
} else {
|
|
883
|
+
const sourceFile = path.join(file.basePath, file.relPath);
|
|
884
|
+
if (fs.existsSync(sourceFile)) {
|
|
885
|
+
if (minify && '.js' === path.extname(sourceFile) && file.relPath.indexOf('node_modules') === -1) {
|
|
886
|
+
log.verbose("package#copySrcToDst()#_copySrcToDst()", "require minification # sourceFile:", sourceFile);
|
|
887
|
+
try {
|
|
888
|
+
const data = uglify.minify(fs.readFileSync(sourceFile,'utf8'));
|
|
889
|
+
if (data.error) {
|
|
890
|
+
throw data.error;
|
|
891
|
+
}
|
|
892
|
+
fs.writeFileSync(path.join(dstPath, file.relPath), data.code, 'utf8');
|
|
893
|
+
} catch (e) {
|
|
894
|
+
log.verbose("package#copySrcToDst()#_copySrcToDst()", util.format('Failed to uglify code %s: %s', sourceFile, e.stack));
|
|
895
|
+
return setImmediate(next, errHndl.getErrMsg("FAILED_MINIFY", sourceFile));
|
|
896
|
+
}
|
|
897
|
+
} else {
|
|
898
|
+
shelljs.cp('-Rf', sourceFile, path.join(dstPath, file.relPath, '..'));
|
|
899
|
+
}
|
|
900
|
+
} else {
|
|
901
|
+
log.verbose("package#copySrcToDst()#_copySrcToDst()", "ignore '" + file.relPath + "'");
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
setImmediate(next);
|
|
905
|
+
}, function(err) {
|
|
906
|
+
if (!err && minify) {
|
|
907
|
+
self.minifyDone = true;
|
|
908
|
+
}
|
|
909
|
+
setImmediate(next, err);
|
|
910
|
+
});
|
|
911
|
+
} catch(err) {
|
|
912
|
+
setImmediate(next, err);
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
function checkELFHeader(next) {
|
|
918
|
+
const self = this,
|
|
919
|
+
ELF_HEADER_LEN = 64,
|
|
920
|
+
buf = Buffer.alloc(ELF_HEADER_LEN),
|
|
921
|
+
mainFile = path.resolve(path.join(this.appDir, this.appinfo.main));
|
|
922
|
+
|
|
923
|
+
if (!fs.existsSync(mainFile)) {
|
|
924
|
+
return setImmediate(next, errHndl.getErrMsg("NOT_EXIST_PATH", mainFile));
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
const fd = fs.openSync(mainFile, 'r'),
|
|
928
|
+
stats = fs.fstatSync(fd),
|
|
929
|
+
elfParser = new ElfParser(),
|
|
930
|
+
_isELF = function(_buf) {
|
|
931
|
+
if (_buf.slice(0, 4).toString() !== '\x7fELF') {
|
|
932
|
+
return false;
|
|
933
|
+
} else {
|
|
934
|
+
return true;
|
|
935
|
+
}
|
|
936
|
+
};
|
|
937
|
+
|
|
938
|
+
if (stats.size < ELF_HEADER_LEN) {
|
|
939
|
+
log.verbose("package#checkELFHeader()", "file size is smaller than ELF Header size");
|
|
940
|
+
return setImmediate(next);
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
fs.read(fd, buf, 0, ELF_HEADER_LEN, 0, function(err, bytesRead, _buf) {
|
|
944
|
+
if (bytesRead < ELF_HEADER_LEN || err) {
|
|
945
|
+
log.silly("package#checkELFHeader()", "err:", err, ", bytesRead:", bytesRead);
|
|
946
|
+
log.silly("package#checkELFHeader()", "readBuf to parse ELF header is small or error occurred during reading file.");
|
|
947
|
+
return setImmediate(next);
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
if (!_isELF(_buf)) {
|
|
951
|
+
log.silly("package#checkELFHeader()", mainFile + " is not ELF format");
|
|
952
|
+
} else {
|
|
953
|
+
log.silly("package#checkELFHeader()", mainFile + " is ELF format");
|
|
954
|
+
try {
|
|
955
|
+
const elfHeader = elfParser.parseHeader(_buf);
|
|
956
|
+
log.silly("package#checkELFHeader()", "elfHeader:", elfHeader);
|
|
957
|
+
|
|
958
|
+
if (elfHeader.machine && elfHeader.machine.match(/86$/)) {
|
|
959
|
+
// current emulator opkg is allowing only all, noarch and i586.
|
|
960
|
+
// when it is used with --offline-root.
|
|
961
|
+
self.architecture = 'i586';
|
|
962
|
+
} else if (elfHeader.machine && elfHeader.machine.match(/amd64$/)) {
|
|
963
|
+
// change amd64 to x86_64
|
|
964
|
+
self.architecture = 'x86_64';
|
|
965
|
+
} else if (elfHeader.machine && elfHeader.machine.match(/AArch64$/)) {
|
|
966
|
+
// change AArch64 to aarch64
|
|
967
|
+
self.architecture = 'aarch64';
|
|
968
|
+
} else {
|
|
969
|
+
self.architecture = elfHeader.machine;
|
|
970
|
+
}
|
|
971
|
+
} catch(e) {
|
|
972
|
+
log.verbose("package#checkELFHeader()", "exception:", e);
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
log.verbose("package#checkELFHeader()", "machine:", self.architecture);
|
|
976
|
+
fs.close(fd);
|
|
977
|
+
setImmediate(next);
|
|
978
|
+
});
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
function copyApp(next) {
|
|
982
|
+
if (this.appCount === 0) {
|
|
983
|
+
return setImmediate(next);
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
this.dataCopyCount++;
|
|
987
|
+
log.info("package#copyApp()", "copy " + this.appDir + " ==> " + this.applicationDir);
|
|
988
|
+
copySrcToDst.call(this, this.appDir, this.applicationDir, next);
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
function copyAssets(next) {
|
|
992
|
+
if (this.appCount === 0) {
|
|
993
|
+
return setImmediate(next);
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
try {
|
|
997
|
+
async.forEachSeries(this.appinfo.assets, _handleAssets.bind(this), next);
|
|
998
|
+
} catch (err) {
|
|
999
|
+
return setImmediate(next, err);
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
function _handleAssets(file, next) {
|
|
1003
|
+
if (path.resolve(this.originAppDir) === path.resolve(this.appDir)) {
|
|
1004
|
+
_checkAppinfo.call(this, file, next);
|
|
1005
|
+
} else {
|
|
1006
|
+
async.series([
|
|
1007
|
+
_checkAppinfo.bind(this, file),
|
|
1008
|
+
_copyAssets.bind(this, file)
|
|
1009
|
+
], next);
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
function _checkAppinfo(file, next) {
|
|
1014
|
+
let source;
|
|
1015
|
+
if (path.resolve(file) === path.normalize(file)) {
|
|
1016
|
+
return next(errHndl.getErrMsg("NOT_RELATIVE_PATH_APPINFO", file));
|
|
1017
|
+
} else {
|
|
1018
|
+
source = path.join(this.originAppDir, file);
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
if (path.resolve(source).indexOf(this.originAppDir) !== 0) {
|
|
1022
|
+
return next(errHndl.getErrMsg("NOT_RELATIVE_PATH_APPINFO", file));
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
if (!fs.existsSync(source) && !this.rom) {
|
|
1026
|
+
const msg = errHndl.getErrMsg("NOT_EXIST_PATH", file);
|
|
1027
|
+
if (path.basename(source).indexOf('$') === 0) {
|
|
1028
|
+
// ignore property with starting $ prefix (dynamic property handling in the platform)
|
|
1029
|
+
return setImmediate(next);
|
|
1030
|
+
} else {
|
|
1031
|
+
return setImmediate(next, msg);
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
setImmediate(next);
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
function _copyAssets(file, next) {
|
|
1038
|
+
log.verbose("package#copyAssets()#_copyAssets", "'" + file + "' will be located in app directory");
|
|
1039
|
+
const source = path.join(this.originAppDir, file),
|
|
1040
|
+
destination = this.appDir;
|
|
1041
|
+
|
|
1042
|
+
async.series([
|
|
1043
|
+
function(next) {
|
|
1044
|
+
if (!fs.existsSync(destination)) {
|
|
1045
|
+
mkdirp(destination, next);
|
|
1046
|
+
} else {
|
|
1047
|
+
setImmediate(next);
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
], function(err) {
|
|
1051
|
+
if (err) {
|
|
1052
|
+
return setImmediate(next, err);
|
|
1053
|
+
}
|
|
1054
|
+
shelljs.cp('-Rf', source, destination);
|
|
1055
|
+
setImmediate(next);
|
|
1056
|
+
});
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
function excludeIpkFileFromApp(next) {
|
|
1061
|
+
// Exclude a pre-built .ipk file
|
|
1062
|
+
this.excludeFiles = this.excludeFiles.concat([
|
|
1063
|
+
// eslint-disable-next-line no-useless-escape
|
|
1064
|
+
"[.]*[\\.]ipk",
|
|
1065
|
+
".DS_Store",
|
|
1066
|
+
// ".vscode",
|
|
1067
|
+
// ".reloadignore",
|
|
1068
|
+
// ".launchparams.json"
|
|
1069
|
+
]);
|
|
1070
|
+
setImmediate(next);
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
function _retrieve(list, regExp, dirPath, depth, next) {
|
|
1074
|
+
async.waterfall([
|
|
1075
|
+
fs.readdir.bind(null, dirPath), function(fileNames, next) {
|
|
1076
|
+
async.forEach(fileNames, function(fileName, next) {
|
|
1077
|
+
const filePath = path.join(dirPath, fileName);
|
|
1078
|
+
async.waterfall([
|
|
1079
|
+
fs.lstat.bind(null, filePath), function(stat, next) {
|
|
1080
|
+
let result = false;
|
|
1081
|
+
if (depth > 1 && regExp.test(filePath)) {
|
|
1082
|
+
result = true;
|
|
1083
|
+
list.push(filePath);
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
if (!result && stat.isDirectory()) {
|
|
1087
|
+
_retrieve(list, regExp, filePath, depth + 1, next);
|
|
1088
|
+
} else {
|
|
1089
|
+
setImmediate(next);
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
], next);
|
|
1093
|
+
}, next);
|
|
1094
|
+
}
|
|
1095
|
+
], function(err) {
|
|
1096
|
+
setImmediate(next, err);
|
|
1097
|
+
});
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
function excludeFromApp(middleCb, next) {
|
|
1101
|
+
let excludes;
|
|
1102
|
+
if (this.appCount === 0) {
|
|
1103
|
+
excludes = this.excludeFiles;
|
|
1104
|
+
} else {
|
|
1105
|
+
excludes = this.excludeFiles.concat(this.appinfo.exclude || []);
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
const regExpQueries = excludes.map(function(exclude) {
|
|
1109
|
+
return exclude.replace(/^\./g,"^\\.").replace(/^\*/g,"").replace(/$/g,"$");
|
|
1110
|
+
}, this),
|
|
1111
|
+
strRegExp = regExpQueries.join("|"),
|
|
1112
|
+
regExp = new RegExp(strRegExp, "i"),
|
|
1113
|
+
excludeList = [],
|
|
1114
|
+
tempDirPrefix = path.resolve(this.tempDir, "data/usr/palm");
|
|
1115
|
+
|
|
1116
|
+
async.series([
|
|
1117
|
+
_retrieve.bind(this, excludeList, regExp, tempDirPrefix, 0), function(next) {
|
|
1118
|
+
const meta_files = ["appinfo.json", "services.json", "packageinfo.json", "resourceinfo.json"],
|
|
1119
|
+
unexcludable = [],
|
|
1120
|
+
excluded = [];
|
|
1121
|
+
try {
|
|
1122
|
+
excludeList.forEach(function(file) {
|
|
1123
|
+
if (meta_files.includes(path.basename(file))) {
|
|
1124
|
+
unexcludable.push(path.basename(file));
|
|
1125
|
+
} else {
|
|
1126
|
+
const sliced = file.slice(tempDirPrefix.length + 1);
|
|
1127
|
+
excluded.push(sliced.slice(sliced.indexOf(path.sep) + 1));
|
|
1128
|
+
shelljs.rm('-rf', file);
|
|
1129
|
+
}
|
|
1130
|
+
});
|
|
1131
|
+
if (unexcludable.length > 0) {
|
|
1132
|
+
middleCb("Cannot exclude: " + unexcludable); // FIXME
|
|
1133
|
+
}
|
|
1134
|
+
if (excluded.length > 0) {
|
|
1135
|
+
middleCb("Excluded: " + excluded); // FIXME
|
|
1136
|
+
}
|
|
1137
|
+
setImmediate(next);
|
|
1138
|
+
} catch(err) {
|
|
1139
|
+
setImmediate(next, err);
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
], function(err) {
|
|
1143
|
+
if (err) {
|
|
1144
|
+
return setImmediate(next, err);
|
|
1145
|
+
}
|
|
1146
|
+
setImmediate(next);
|
|
1147
|
+
});
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
function createPackageDir(next) {
|
|
1151
|
+
if (!this.rom) {
|
|
1152
|
+
const pkgDirName = this.pkgId || this.appinfo.id;
|
|
1153
|
+
this.packageDir = path.join(this.tempDir, "data/usr/palm/packages", pkgDirName);
|
|
1154
|
+
log.verbose("package#createPackageDir", "directory:", this.packageDir);
|
|
1155
|
+
mkdirp(this.packageDir, next);
|
|
1156
|
+
} else {
|
|
1157
|
+
setImmediate(next);
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
function fillPackageDir(next) {
|
|
1162
|
+
log.verbose("fillPackageDir");
|
|
1163
|
+
|
|
1164
|
+
if (!this.rom) {
|
|
1165
|
+
let data = "";
|
|
1166
|
+
if (this.pkginfo) {
|
|
1167
|
+
// Use pkginfofile option or PKG_DIR
|
|
1168
|
+
if (!this.pkginfo.version) {
|
|
1169
|
+
this.pkginfo.version = this.pkgVersion || "1.0.0";
|
|
1170
|
+
}
|
|
1171
|
+
if (this.appinfo) {
|
|
1172
|
+
this.pkginfo.app = this.appinfo.id;
|
|
1173
|
+
}
|
|
1174
|
+
_checkPkgInfo(this.pkginfo.id, this.pkginfo.version, next);
|
|
1175
|
+
data = JSON.stringify(this.pkginfo, null, 2) + "\n";
|
|
1176
|
+
} else {
|
|
1177
|
+
// Use pkgid option or no option
|
|
1178
|
+
const pkginfo = {
|
|
1179
|
+
"id": this.pkgId || this.appinfo.id,
|
|
1180
|
+
"version": this.pkgVersion || "1.0.0"
|
|
1181
|
+
};
|
|
1182
|
+
if (this.appinfo) {
|
|
1183
|
+
pkginfo.app = this.appinfo.id;
|
|
1184
|
+
}
|
|
1185
|
+
_checkPkgInfo(pkginfo.id, pkginfo.version, next);
|
|
1186
|
+
data = JSON.stringify(pkginfo, null, 2) + "\n";
|
|
1187
|
+
}
|
|
1188
|
+
log.verbose("Generating packageinfo.json: " + data);
|
|
1189
|
+
fs.writeFile(path.join(this.packageDir, "packageinfo.json"), data, next);
|
|
1190
|
+
} else {
|
|
1191
|
+
setImmediate(next);
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
function _checkPkgInfo(id, version, next) {
|
|
1195
|
+
if (!(/^[a-z0-9.+-]*$/.test(id))) {
|
|
1196
|
+
log.error(errHndl.getErrMsg("INVALID_VALUE", "pkg id", id));
|
|
1197
|
+
return setImmediate(next, errHndl.getErrMsg("INVALID_ID_RULE"));
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
if (!(/^([1-9]\d{0,8}|\d)\.([1-9]\d{0,8}|\d)\.([1-9]\d{0,8}|\d)$/.test(version))) {
|
|
1201
|
+
log.error(errHndl.getErrMsg("INVALID_VALUE", "pkg version", version));
|
|
1202
|
+
return setImmediate(next, errHndl.getErrMsg("INVALID_VERSION_RULE"));
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
|
|
1208
|
+
function loadPackageProperties(inDirs, next) {
|
|
1209
|
+
const self = this;
|
|
1210
|
+
self.packageProperties = {};
|
|
1211
|
+
|
|
1212
|
+
async.forEach(inDirs, function(inDir, next) {
|
|
1213
|
+
const filename = path.join(inDir, "package.properties");
|
|
1214
|
+
|
|
1215
|
+
function _checkFileMode(file) {
|
|
1216
|
+
file = file.replace(/\\/g, "/").trim();
|
|
1217
|
+
const idx = file.lastIndexOf("/");
|
|
1218
|
+
file = (idx !== -1) ? file.slice(idx + 1) : file;
|
|
1219
|
+
self.packageProperties[file] = this.fileMode;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
if (fs.existsSync(filename)) {
|
|
1223
|
+
const data = fs.readFileSync(filename);
|
|
1224
|
+
try {
|
|
1225
|
+
const lines = data.toString().split("\n");
|
|
1226
|
+
let seperatorIndex;
|
|
1227
|
+
|
|
1228
|
+
for (const i in lines) {
|
|
1229
|
+
if (lines[i].indexOf("filemode.") === 0) {
|
|
1230
|
+
seperatorIndex = lines[i].indexOf("=");
|
|
1231
|
+
const fileList = lines[i].slice(seperatorIndex + 1).trim(),
|
|
1232
|
+
fileArray = fileList.split(",");
|
|
1233
|
+
this.fileMode = lines[i].slice(9, seperatorIndex).trim();
|
|
1234
|
+
|
|
1235
|
+
fileArray.forEach(_checkFileMode);
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
setImmediate(next);
|
|
1239
|
+
} catch (error) {
|
|
1240
|
+
setImmediate(next, error);
|
|
1241
|
+
}
|
|
1242
|
+
} else {
|
|
1243
|
+
setImmediate(next);
|
|
1244
|
+
}
|
|
1245
|
+
}, function(err) {
|
|
1246
|
+
// Exclude package.propeties from ipk file
|
|
1247
|
+
self.excludeFiles = self.excludeFiles.concat([
|
|
1248
|
+
"package.properties"
|
|
1249
|
+
]);
|
|
1250
|
+
setImmediate(next, err);
|
|
1251
|
+
});
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
function outputPackage(destination, next) {
|
|
1255
|
+
log.info("package#outputPackage()");
|
|
1256
|
+
|
|
1257
|
+
// Check that the directories exist
|
|
1258
|
+
if (fs.existsSync(destination)) {
|
|
1259
|
+
const stats = fs.statSync(destination);
|
|
1260
|
+
if (!stats.isDirectory()) {
|
|
1261
|
+
return next(errHndl.getErrMsg("NOT_DIRTYPE_PATH", destination));
|
|
1262
|
+
}
|
|
1263
|
+
} else {
|
|
1264
|
+
log.verbose("setOutputDir()", "creating directory '" + destination + "' ...");
|
|
1265
|
+
mkdirp.sync(destination);
|
|
1266
|
+
}
|
|
1267
|
+
destination = fs.realpathSync(destination);
|
|
1268
|
+
|
|
1269
|
+
if (this.rom) {
|
|
1270
|
+
copySrcToDst.call(this, path.join(this.tempDir, 'data'), destination, next);
|
|
1271
|
+
} else {
|
|
1272
|
+
const tempDir = this.tempDir,
|
|
1273
|
+
tempCtrlDir = path.join(tempDir, 'ctrl'),
|
|
1274
|
+
ctrlTgzFile = path.join(tempDir, 'control.tar.gz'),
|
|
1275
|
+
tempDataDir = path.join(tempDir, 'data'),
|
|
1276
|
+
dataTgzFile = path.join(tempDir, 'data.tar.gz');
|
|
1277
|
+
|
|
1278
|
+
async.series([
|
|
1279
|
+
decidePkgName.bind(this, this.pkgId, this.pkgVersion),
|
|
1280
|
+
getFileSize.bind(this, tempDataDir),
|
|
1281
|
+
makeTgz.bind(this, tempDataDir, dataTgzFile),
|
|
1282
|
+
createDir.bind(this, tempCtrlDir),
|
|
1283
|
+
createDataHash.bind(this, tempCtrlDir, dataTgzFile),
|
|
1284
|
+
createCertificateHash.bind(this, tempCtrlDir),
|
|
1285
|
+
createControlFile.bind(this, tempCtrlDir, false),
|
|
1286
|
+
createControlSignFile.bind(this, tempCtrlDir),
|
|
1287
|
+
makeTgz.bind(this, tempCtrlDir, ctrlTgzFile),
|
|
1288
|
+
createDebianBinary.bind(this, tempDir),
|
|
1289
|
+
setIpkFileName.bind(this),
|
|
1290
|
+
removeExistingIpk.bind(this, destination),
|
|
1291
|
+
makeIpk.bind(this, tempDir)
|
|
1292
|
+
], function(err) {
|
|
1293
|
+
if (err) {
|
|
1294
|
+
setImmediate(next, err);
|
|
1295
|
+
return;
|
|
1296
|
+
}
|
|
1297
|
+
setImmediate(next);
|
|
1298
|
+
});
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
function decidePkgName(pkgName, pkgVersion, next) {
|
|
1303
|
+
if (this.appCount !== 0) {
|
|
1304
|
+
this.pkg = {
|
|
1305
|
+
name: pkgName || this.appinfo.id,
|
|
1306
|
+
version: pkgVersion || this.appinfo.version
|
|
1307
|
+
};
|
|
1308
|
+
} else if (this.services.length > 0) {
|
|
1309
|
+
this.pkg = {
|
|
1310
|
+
name: pkgName || this.services[0].serviceInfo.id || this.services[0].serviceInfo.services[0].name,
|
|
1311
|
+
version: pkgVersion || "1.0.0"
|
|
1312
|
+
};
|
|
1313
|
+
} else {
|
|
1314
|
+
this.pkg = {
|
|
1315
|
+
name: pkgName || "unknown",
|
|
1316
|
+
version: pkgVersion || "1.0.0"
|
|
1317
|
+
};
|
|
1318
|
+
}
|
|
1319
|
+
setImmediate(next);
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
function getFileSize(srcDir, next) {
|
|
1323
|
+
const self = this;
|
|
1324
|
+
|
|
1325
|
+
async.waterfall([
|
|
1326
|
+
_readSizeRecursive.bind(this, srcDir)
|
|
1327
|
+
], function(err, size) {
|
|
1328
|
+
if (!err && size) {
|
|
1329
|
+
log.verbose("package#getFileSize()", "Installed-Size:", size);
|
|
1330
|
+
self.size = size;
|
|
1331
|
+
}
|
|
1332
|
+
setImmediate(next, err);
|
|
1333
|
+
});
|
|
1334
|
+
|
|
1335
|
+
function _readSizeRecursive(item, next) {
|
|
1336
|
+
fs.lstat(item, function(err, stats) {
|
|
1337
|
+
let total = stats.size;
|
|
1338
|
+
|
|
1339
|
+
if (!err && stats.isDirectory()) {
|
|
1340
|
+
fs.readdir(item, function(error, list) {
|
|
1341
|
+
if (error) {
|
|
1342
|
+
return next(error);
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
async.forEach(list, function(diritem, callback) {
|
|
1346
|
+
_readSizeRecursive(path.join(item, diritem), function(_err, size) {
|
|
1347
|
+
total += size;
|
|
1348
|
+
callback(_err);
|
|
1349
|
+
});
|
|
1350
|
+
}, function(e) {
|
|
1351
|
+
next(e, total);
|
|
1352
|
+
}
|
|
1353
|
+
);
|
|
1354
|
+
});
|
|
1355
|
+
} else {
|
|
1356
|
+
next(err, total);
|
|
1357
|
+
}
|
|
1358
|
+
});
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
function createDir(dstPath, next) {
|
|
1363
|
+
log.verbose("package#createDir()", "createDir:" + dstPath);
|
|
1364
|
+
mkdirp(dstPath, next);
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
function createDataHash(dstDir, dataTgzPath, next) {
|
|
1368
|
+
const self = this;
|
|
1369
|
+
log.verbose("package#createDataHash()", "Create data hash");
|
|
1370
|
+
|
|
1371
|
+
if (!this.sign) {
|
|
1372
|
+
log.verbose("package#createDataHash()", "App signing skipped");
|
|
1373
|
+
return setImmediate(next);
|
|
1374
|
+
}
|
|
1375
|
+
let signFilePath = path.join(dstDir, "data.tar.gz.sha256.txt");
|
|
1376
|
+
log.verbose("package#createDataHash()", "dataTgzPath : " + dataTgzPath + ", signfile : " + signFilePath);
|
|
1377
|
+
|
|
1378
|
+
let keyPath = path.resolve(this.sign);
|
|
1379
|
+
log.verbose("package#createDataHash()", "keyPath : " + keyPath);
|
|
1380
|
+
|
|
1381
|
+
try {
|
|
1382
|
+
// data.tar.gz can be big size, so it need to use filestream
|
|
1383
|
+
let readStream = fs.createReadStream(dataTgzPath);
|
|
1384
|
+
|
|
1385
|
+
let hasher = crypto.createHash("sha256");
|
|
1386
|
+
|
|
1387
|
+
readStream.on("readable", function() {
|
|
1388
|
+
const data = readStream.read();
|
|
1389
|
+
if (data) {
|
|
1390
|
+
hasher.update(data);
|
|
1391
|
+
}
|
|
1392
|
+
else {
|
|
1393
|
+
self.dataHash = hasher.digest("hex");
|
|
1394
|
+
log.verbose("package#createDataHash()", "Data.tar.gz Hash : " + self.dataHash)
|
|
1395
|
+
setImmediate(next);
|
|
1396
|
+
}
|
|
1397
|
+
});
|
|
1398
|
+
} catch (err) {
|
|
1399
|
+
setImmediate(next, err);
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
function createCertificateHash(dstDir, next) {
|
|
1404
|
+
const self = this;
|
|
1405
|
+
try {
|
|
1406
|
+
if (!self.certificate) {
|
|
1407
|
+
log.verbose("package#createCertificateHash()", "Including certificate skipped");
|
|
1408
|
+
return setImmediate(next);
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
let crtPath = path.join(dstDir, "certifiate.crt");
|
|
1412
|
+
shelljs.cp("-f", path.resolve(self.certificate), crtPath );
|
|
1413
|
+
|
|
1414
|
+
fs.readFile(crtPath, function (err, certData) {
|
|
1415
|
+
if (err) {
|
|
1416
|
+
setImmediate(next, err);
|
|
1417
|
+
return;
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
// Gets hash from certificate
|
|
1421
|
+
self.certificateHash = crypto.createHash("sha256").update(certData);
|
|
1422
|
+
self.certificateHash = self.certificateHash.digest("hex");
|
|
1423
|
+
|
|
1424
|
+
log.verbose("package#createCertificateHash()", "Certificate Hash : " + self.certificateHash);
|
|
1425
|
+
|
|
1426
|
+
setImmediate(next);
|
|
1427
|
+
});
|
|
1428
|
+
} catch (err) {
|
|
1429
|
+
setImmediate(next, err);
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
function createControlFile(dstDir, encInfo, next) {
|
|
1434
|
+
const dstFilePath = path.join(dstDir, 'control');
|
|
1435
|
+
log.verbose("package#createControlFile()", "createControlFile:" + dstFilePath);
|
|
1436
|
+
|
|
1437
|
+
const lines = [
|
|
1438
|
+
"Package: " + this.pkg.name,
|
|
1439
|
+
"Version: " + this.pkg.version,
|
|
1440
|
+
"Section: misc",
|
|
1441
|
+
"Priority: optional",
|
|
1442
|
+
"Architecture: " + (this.architecture || "all"),
|
|
1443
|
+
"Installed-Size: " + (this.size || 1234), // TODO: TBC
|
|
1444
|
+
"Maintainer: N/A <nobody@example.com>", // TODO: TBC
|
|
1445
|
+
"Description: This is a webOS application.",
|
|
1446
|
+
"webOS-Package-Format-Version: 2", // TODO: TBC
|
|
1447
|
+
"webOS-Packager-Version: x.y.x" // TODO: TBC
|
|
1448
|
+
];
|
|
1449
|
+
|
|
1450
|
+
// To IPK security (SEAL)
|
|
1451
|
+
if (this.sign !== null) {
|
|
1452
|
+
lines.push('Application-Hash-Algorithm: SHA-256');
|
|
1453
|
+
lines.push('Application-Hash: ' + this.dataHash);
|
|
1454
|
+
}
|
|
1455
|
+
if (this.certificate !== null) {
|
|
1456
|
+
lines.push('Certificate-Hash: ' + this.certificateHash);
|
|
1457
|
+
lines.push('Signature-Algorithm: RSA');
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
if (encInfo) {
|
|
1461
|
+
lines.push("Encrypt-Algorithm: AES-256-CBC");
|
|
1462
|
+
}
|
|
1463
|
+
lines.push(''); // for the trailing \n
|
|
1464
|
+
fs.writeFile(dstFilePath, lines.join("\n"), next);
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
function createControlSignFile(ctrlDir, next) {
|
|
1468
|
+
try {
|
|
1469
|
+
if (this.sign === null) {
|
|
1470
|
+
log.verbose("package#createControlSignFile()", "App signing is skipped");
|
|
1471
|
+
return setImmediate(next);
|
|
1472
|
+
}
|
|
1473
|
+
let controlFilePath = path.join(ctrlDir, 'control'),
|
|
1474
|
+
controlSignFilePath = path.join(ctrlDir, 'control.sign'),
|
|
1475
|
+
keyPath = path.resolve(this.sign);
|
|
1476
|
+
|
|
1477
|
+
log.verbose("package#createControlSignFile()", "controlFilePath: " + controlFilePath);
|
|
1478
|
+
log.verbose("package#createControlSignFile()", "controlSignFilePath: " + controlSignFilePath);
|
|
1479
|
+
log.verbose("package#createControlSignFile()", "keyPath: " + keyPath);
|
|
1480
|
+
|
|
1481
|
+
let privateKey = fs.readFileSync(keyPath, 'utf-8');
|
|
1482
|
+
|
|
1483
|
+
fs.readFile(controlFilePath, function(err, controlData) {
|
|
1484
|
+
if (err) {
|
|
1485
|
+
setImmediate(next, err);
|
|
1486
|
+
return;
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
// Gets hash from control
|
|
1490
|
+
let controlSigner = crypto.createSign('sha256')
|
|
1491
|
+
controlSigner.update(controlData);
|
|
1492
|
+
controlSigner.end();
|
|
1493
|
+
controlSign = controlSigner.sign(privateKey);
|
|
1494
|
+
let base64data = Buffer.from(controlSign).toString('base64');
|
|
1495
|
+
|
|
1496
|
+
fs.writeFile(controlSignFilePath, base64data, next);
|
|
1497
|
+
});
|
|
1498
|
+
} catch (err) {
|
|
1499
|
+
setImmediate(next, err);
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
function createDebianBinary(dstDir, next) {
|
|
1504
|
+
const dstFilePath = path.join(dstDir, "debian-binary");
|
|
1505
|
+
log.verbose("package#createDebianBinary()", dstFilePath);
|
|
1506
|
+
fs.writeFile(dstFilePath, "2.0\n", next);
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
function makeTgz(srcDir, dstDir, next) {
|
|
1510
|
+
log.verbose("package#makeTgz()", "makeTgz " + dstDir + " from " + srcDir);
|
|
1511
|
+
const pkgServiceNames = this.pkgServiceNames;
|
|
1512
|
+
// @see https://github.com/isaacs/node-tar/issues/7
|
|
1513
|
+
// it is a workaround for packaged ipk on windows can set +x into directory
|
|
1514
|
+
const fixupDirs = function (filePath, entry) {
|
|
1515
|
+
const fileOrFolderName = filePath.split("/").pop();
|
|
1516
|
+
// opkg does not support Posix Tar fully
|
|
1517
|
+
if (fileOrFolderName.length !== Buffer.byteLength(fileOrFolderName)) {
|
|
1518
|
+
const errMsg = "Please use the file name in english letters. \n\t\t (" + filePath + ")",
|
|
1519
|
+
em = new (require('events').EventEmitter)();
|
|
1520
|
+
em.emit('error', new Error(errMsg));
|
|
1521
|
+
}
|
|
1522
|
+
// Make sure readable directories have execute permission
|
|
1523
|
+
if (entry.isDirectory()) {
|
|
1524
|
+
let maskingBits = 201; // 0311
|
|
1525
|
+
// special case for service directory should have writable permission.
|
|
1526
|
+
if (pkgServiceNames.indexOf(fileOrFolderName) !== -1) {
|
|
1527
|
+
maskingBits = 219; // 0333
|
|
1528
|
+
}
|
|
1529
|
+
entry.mode |= (entry.mode >>> 2) & maskingBits;
|
|
1530
|
+
} else if (entry.isFile()) {
|
|
1531
|
+
// Add other user's readable permission to all files
|
|
1532
|
+
entry.mode |= 4; // 04
|
|
1533
|
+
}
|
|
1534
|
+
if (entry.uid > 0o7777777) {
|
|
1535
|
+
entry.uid = 0;
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
if (entry.gid > 0o7777777) {
|
|
1539
|
+
entry.gid = 0;
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
return true;
|
|
1543
|
+
};
|
|
1544
|
+
|
|
1545
|
+
fs.readdir(srcDir, function (err, fileList) {
|
|
1546
|
+
if (err) setImmediate(next, err);
|
|
1547
|
+
else {
|
|
1548
|
+
tar.c({
|
|
1549
|
+
file: dstDir,
|
|
1550
|
+
gzip: true,
|
|
1551
|
+
cwd: srcDir,
|
|
1552
|
+
filter: fixupDirs
|
|
1553
|
+
}, fileList)
|
|
1554
|
+
.then(() => setImmediate(next))
|
|
1555
|
+
.catch(error => setImmediate(next, error));
|
|
1556
|
+
}
|
|
1557
|
+
});
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
function setIpkFileName(next) {
|
|
1561
|
+
let filename = this.pkg.name;
|
|
1562
|
+
if (this.pkg.version) {
|
|
1563
|
+
// This is asked to replace 'x86' from 'i586' as a file suffix (From NDK)
|
|
1564
|
+
const archSuffix = ('i586' === this.architecture) ? 'x86' : (this.architecture || 'all');
|
|
1565
|
+
filename = filename.concat("_" + this.pkg.version + "_" + archSuffix + ".ipk");
|
|
1566
|
+
} else {
|
|
1567
|
+
filename = filename.concat(".ipk");
|
|
1568
|
+
}
|
|
1569
|
+
this.ipkFileName = filename;
|
|
1570
|
+
this.plainIpkFileName = filename + '_plain';
|
|
1571
|
+
setImmediate(next);
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
function removeExistingIpk(destination, next) {
|
|
1575
|
+
if (this.appCount === 0) {
|
|
1576
|
+
return setImmediate(next);
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
const filename = path.join(destination, this.ipkFileName);
|
|
1580
|
+
fs.exists(filename, function(exists) {
|
|
1581
|
+
if (exists) {
|
|
1582
|
+
fs.unlink(filename, next);
|
|
1583
|
+
} else {
|
|
1584
|
+
setImmediate(next); // Nothing to do
|
|
1585
|
+
}
|
|
1586
|
+
});
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
function padSpace(input, length) {
|
|
1590
|
+
// max field length in ar is 16
|
|
1591
|
+
const ret = String(input + ' ');
|
|
1592
|
+
return ret.slice(0, length);
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
function arFileHeader(name, size) {
|
|
1596
|
+
const epoch = Math.floor(Date.now() / 1000) ;
|
|
1597
|
+
return padSpace(name, 16) +
|
|
1598
|
+
padSpace(epoch, 12) +
|
|
1599
|
+
"0 " + // UID, 6 bytes
|
|
1600
|
+
"0 " + // GID, 6 bytes
|
|
1601
|
+
"100644 " + // file mode, 8 bytes
|
|
1602
|
+
padSpace(size, 10) +
|
|
1603
|
+
"\x60\x0A"; // don't ask
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
function makeIpk(srcDir, next) {
|
|
1607
|
+
this.IpkDir = srcDir;
|
|
1608
|
+
this.ipk = path.join(srcDir, this.ipkFileName);
|
|
1609
|
+
log.info("package#makeIpk()", "makeIpk in dir " + this.IpkDir + " file " + this.ipkFileName);
|
|
1610
|
+
|
|
1611
|
+
if (this.nativecmd) { // TODO: TBR
|
|
1612
|
+
shelljs.cd(this.IpkDir);
|
|
1613
|
+
shelljs.exec("ar -q " + this.ipk + " debian-binary control.tar.gz data.tar.gz", {silent: this.silent});
|
|
1614
|
+
|
|
1615
|
+
setImmediate(next);
|
|
1616
|
+
return;
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
// global header, see http://en.wikipedia.org/wiki/Ar_%28Unix%29
|
|
1620
|
+
const header = "!<arch>\n",
|
|
1621
|
+
debBinary = arFileHeader("debian-binary",4) + "2.0\n",
|
|
1622
|
+
that = this,
|
|
1623
|
+
arStream = CombinedStream.create(),
|
|
1624
|
+
pkgFiles = [ 'control.tar.gz', 'data.tar.gz' ],
|
|
1625
|
+
ipkStream = fstream.Writer(this.ipk);
|
|
1626
|
+
|
|
1627
|
+
arStream.append(header + debBinary);
|
|
1628
|
+
pkgFiles.forEach(function(f) {
|
|
1629
|
+
const fpath = path.join(that.IpkDir, f),
|
|
1630
|
+
s = fstream.Reader({ path: fpath, type: 'File'}),
|
|
1631
|
+
stat = fs.statSync(fpath); // TODO: move to asynchronous processing
|
|
1632
|
+
|
|
1633
|
+
arStream.append(arFileHeader(f, stat.size));
|
|
1634
|
+
arStream.append(s);
|
|
1635
|
+
if ((stat.size % 2) !== 0) {
|
|
1636
|
+
log.verbose("package#makeIpk()", 'adding a filler for file ' + f);
|
|
1637
|
+
arStream.append('\n');
|
|
1638
|
+
}
|
|
1639
|
+
}, this);
|
|
1640
|
+
|
|
1641
|
+
arStream.pipe(ipkStream);
|
|
1642
|
+
ipkStream.on('close', function() {
|
|
1643
|
+
setImmediate(next);
|
|
1644
|
+
});
|
|
1645
|
+
ipkStream.on('error', next);
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
function cleanupTmpDir(middleCb, next) {
|
|
1649
|
+
if (this.noclean) {
|
|
1650
|
+
middleCb("Skipping removal of " + this.tempDir);
|
|
1651
|
+
setImmediate(next);
|
|
1652
|
+
} else {
|
|
1653
|
+
rimraf(this.tempDir, function(err) {
|
|
1654
|
+
log.verbose("package#cleanupTmpDir()", "removed " + this.tempDir);
|
|
1655
|
+
setImmediate(next, err);
|
|
1656
|
+
}.bind(this));
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1660
|
+
function checkDirectory(options, directory, callback) {
|
|
1661
|
+
log.verbose("package#checkDirectory()", directory);
|
|
1662
|
+
if (fs.existsSync(directory)) { // TODO: move to asynchronous processing
|
|
1663
|
+
const stat = fs.statSync(directory);
|
|
1664
|
+
if (!stat.isDirectory()) {
|
|
1665
|
+
callback(errHndl.getErrMsg("NOT_DIRTYPE_PATH", directory));
|
|
1666
|
+
return;
|
|
1667
|
+
}
|
|
1668
|
+
directory = fs.realpathSync(directory);
|
|
1669
|
+
} else {
|
|
1670
|
+
callback(errHndl.getErrMsg("NOT_EXIST_PATH", directory));
|
|
1671
|
+
return;
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
if (options.force) {
|
|
1675
|
+
return callback();
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
if (fs.existsSync(path.join(directory, "packageinfo.json"))) {
|
|
1679
|
+
return callback(errHndl.getErrMsg("NOT_PACKAGE_WITH_PKGDIR"));
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
if (fs.existsSync(path.join(directory, "appinfo.json"))) {// TODO: move to asynchronous processing
|
|
1683
|
+
this.appCount++;
|
|
1684
|
+
log.verbose("package#checkDirectory()", "FOUND appinfo.json, appCount " + this.appCount);
|
|
1685
|
+
|
|
1686
|
+
if (this.appCount > 1) {
|
|
1687
|
+
callback(errHndl.getErrMsg("OVER_APPCOUNT"));
|
|
1688
|
+
} else if (this.rscCount > 0) {
|
|
1689
|
+
callback(errHndl.getErrMsg("NOT_PACKAGE_WITH_RESOURCE"));
|
|
1690
|
+
} else {
|
|
1691
|
+
this.appDir = directory;
|
|
1692
|
+
this.originAppDir = directory;
|
|
1693
|
+
if (fs.existsSync(path.join(directory, "package.js"))) {
|
|
1694
|
+
this.pkgJSExist = true;
|
|
1695
|
+
}
|
|
1696
|
+
callback();
|
|
1697
|
+
}
|
|
1698
|
+
} else if (fs.existsSync(path.join(directory, "services.json"))) {
|
|
1699
|
+
if (this.rscCount > 0) {
|
|
1700
|
+
callback(errHndl.getErrMsg("NOT_PACKAGE_WITH_RESOURCE"));
|
|
1701
|
+
}
|
|
1702
|
+
this.svcDir = this.svcDir || [];
|
|
1703
|
+
this.svcDir = this.svcDir.concat(directory);
|
|
1704
|
+
callback();
|
|
1705
|
+
} else if (fs.existsSync(path.join(directory, "resourceinfo.json"))) {
|
|
1706
|
+
this.rscCount++;
|
|
1707
|
+
log.verbose("FOUND resourceinfo.json, rscCount " + this.rscCount);
|
|
1708
|
+
if (this.appCount > 0 || this.svcDir && this.svcDir.length > 0) {
|
|
1709
|
+
return callback(errHndl.getErrMsg("NOT_PACKAGE_WITH_RESOURCE"));
|
|
1710
|
+
}
|
|
1711
|
+
this.resources = this.resources || [];
|
|
1712
|
+
const rsc = {};
|
|
1713
|
+
rsc.dir = directory;
|
|
1714
|
+
this.resources = this.resources.concat(rsc);
|
|
1715
|
+
callback();
|
|
1716
|
+
} else if (fs.existsSync(path.join(directory, "account-templates.json"))) {
|
|
1717
|
+
callback(errHndl.getErrMsg("NO_ACCOUNT"));
|
|
1718
|
+
} else {
|
|
1719
|
+
// find service directory recursively
|
|
1720
|
+
const foundSvcDirs = [];
|
|
1721
|
+
this.svcDir = this.svcDir || [];
|
|
1722
|
+
this.svcDir = this.svcDir.concat(directory);
|
|
1723
|
+
|
|
1724
|
+
findServiceDir.call(this, foundSvcDirs, function() {
|
|
1725
|
+
if (foundSvcDirs.length > 0) {
|
|
1726
|
+
if (this.rscCount > 0) {
|
|
1727
|
+
callback(errHndl.getErrMsg("NOT_PACKAGE_WITH_RESOURCE"));
|
|
1728
|
+
}
|
|
1729
|
+
callback();
|
|
1730
|
+
} else {
|
|
1731
|
+
callback(errHndl.getErrMsg("NO_METAFILE", "APP_DIR/SVC_DIR", directory));
|
|
1732
|
+
}
|
|
1733
|
+
});
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
// find service directories checking if directory has services.json file
|
|
1738
|
+
function findServiceDir(services, next) {
|
|
1739
|
+
const checkDirs = [].concat(this.svcDir || this.originAppDir || []),
|
|
1740
|
+
foundFilePath = [];
|
|
1741
|
+
if (checkDirs.length === 0) {
|
|
1742
|
+
return setImmediate(next);
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
async.forEach(checkDirs, function(checkDir, next) {
|
|
1746
|
+
walkFolder(checkDir, "services.json", foundFilePath, 3, function(err) {
|
|
1747
|
+
if (err) {
|
|
1748
|
+
return setImmediate(next, err);
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
foundFilePath.forEach(function(filePath) {
|
|
1752
|
+
const svc = new Service();
|
|
1753
|
+
svc.srcDir = path.dirname(filePath);
|
|
1754
|
+
svc.dirName = path.basename(svc.srcDir);
|
|
1755
|
+
services.push(svc);
|
|
1756
|
+
});
|
|
1757
|
+
foundFilePath.pop();
|
|
1758
|
+
setImmediate(next, err);
|
|
1759
|
+
});
|
|
1760
|
+
}, function(err) {
|
|
1761
|
+
setImmediate(next, err);
|
|
1762
|
+
});
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
function walkFolder(dirPath, findFileName, foundFilePath, depth, next) {
|
|
1766
|
+
if (depth <= 0) {
|
|
1767
|
+
return next();
|
|
1768
|
+
}
|
|
1769
|
+
async.waterfall([
|
|
1770
|
+
fs.readdir.bind(null, dirPath),
|
|
1771
|
+
function(fileNames, next) {
|
|
1772
|
+
async.forEach(fileNames, function(fileName, next) {
|
|
1773
|
+
const filePath = path.join(dirPath, fileName);
|
|
1774
|
+
async.waterfall([
|
|
1775
|
+
fs.lstat.bind(null, filePath),
|
|
1776
|
+
function(stat, next) {
|
|
1777
|
+
if (stat.isFile()) {
|
|
1778
|
+
if (fileName === findFileName) {
|
|
1779
|
+
foundFilePath.push(filePath);
|
|
1780
|
+
}
|
|
1781
|
+
next();
|
|
1782
|
+
} else if (stat.isDirectory()) {
|
|
1783
|
+
walkFolder(filePath, findFileName, foundFilePath, (depth-1), next);
|
|
1784
|
+
} else {
|
|
1785
|
+
next();
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
], next); // async.waterfall
|
|
1789
|
+
}, next); // async.forEach
|
|
1790
|
+
}
|
|
1791
|
+
], function(err) {
|
|
1792
|
+
next(err);
|
|
1793
|
+
}); // async.waterfall
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
// read services.json recursivly
|
|
1797
|
+
function loadServiceInfo(next) {
|
|
1798
|
+
for (const idx in this.services) {
|
|
1799
|
+
const filename = path.join(this.services[idx].srcDir, "services.json");
|
|
1800
|
+
try {
|
|
1801
|
+
const data = fs.readFileSync(filename),
|
|
1802
|
+
info = JSON.parse(data);
|
|
1803
|
+
if (!(Object.prototype.hasOwnProperty.call(info, 'id') &&
|
|
1804
|
+
Object.prototype.hasOwnProperty.call(info, 'services'))) {
|
|
1805
|
+
continue;
|
|
1806
|
+
}
|
|
1807
|
+
this.services[idx].serviceInfo = info;
|
|
1808
|
+
this.services[idx].valid = true;
|
|
1809
|
+
} catch (err) {
|
|
1810
|
+
return setImmediate(next, err);
|
|
1811
|
+
}
|
|
1812
|
+
}
|
|
1813
|
+
log.info("package#loadServiceInfo()", "num of serviceInfo: " + this.services.length);
|
|
1814
|
+
setImmediate(next);
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
// check services.json recursivly
|
|
1818
|
+
function checkServiceInfo(next) {
|
|
1819
|
+
const pkgId = this.pkgId || this.appinfo.id,
|
|
1820
|
+
svcIds = [];
|
|
1821
|
+
let errFlag = false;
|
|
1822
|
+
|
|
1823
|
+
this.services.forEach(function(service) {
|
|
1824
|
+
if (service.valid === false) {
|
|
1825
|
+
return;
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
svcIds.push(getPkgServiceNames(service.serviceInfo)[0]);
|
|
1829
|
+
});
|
|
1830
|
+
|
|
1831
|
+
svcIds.forEach(function(svcId) {
|
|
1832
|
+
if (svcId.indexOf(pkgId + ".") !== 0) {
|
|
1833
|
+
errFlag = true;
|
|
1834
|
+
}
|
|
1835
|
+
});
|
|
1836
|
+
|
|
1837
|
+
if (errFlag) {
|
|
1838
|
+
return setImmediate(next, errHndl.getErrMsg("INVALID_SERVICEID", pkgId));
|
|
1839
|
+
}
|
|
1840
|
+
setImmediate(next);
|
|
1841
|
+
}
|
|
1842
|
+
|
|
1843
|
+
// create dir with each service's name under (tmp) + data/usr/palm/services/
|
|
1844
|
+
function createServiceDir(next) {
|
|
1845
|
+
this.services.forEach(function(service) {
|
|
1846
|
+
if (service.valid === false) {
|
|
1847
|
+
return;
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1850
|
+
getPkgServiceNames(service.serviceInfo).forEach(function(serviceName) {
|
|
1851
|
+
const serviceDir = path.join(this.tempDir, "data/usr/palm/services", serviceName);
|
|
1852
|
+
service.dstDirs.push(serviceDir);
|
|
1853
|
+
try {
|
|
1854
|
+
log.info("package#createServiceDir()", "service dir:" + serviceDir);
|
|
1855
|
+
mkdirp.sync(serviceDir);
|
|
1856
|
+
} catch (err) {
|
|
1857
|
+
return setImmediate(next, err);
|
|
1858
|
+
}
|
|
1859
|
+
}.bind(this));
|
|
1860
|
+
}.bind(this));
|
|
1861
|
+
setImmediate(next);
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1864
|
+
// copy service files into each serviceInfos[x].id directory.
|
|
1865
|
+
function copyService(next) {
|
|
1866
|
+
log.info("package#copyService()");
|
|
1867
|
+
const self = this,
|
|
1868
|
+
validServices = this.services.filter(function(service) {
|
|
1869
|
+
return service.valid;
|
|
1870
|
+
});
|
|
1871
|
+
try {
|
|
1872
|
+
async.forEachSeries(validServices, function(service, next) {
|
|
1873
|
+
async.forEach(service.dstDirs, function(dstDir, next) {
|
|
1874
|
+
self.dataCopyCount++;
|
|
1875
|
+
self.minifyDone = !self.minify;
|
|
1876
|
+
copySrcToDst.call(self, service.srcDir, dstDir, next);
|
|
1877
|
+
}, next);
|
|
1878
|
+
}, next);
|
|
1879
|
+
} catch (err) {
|
|
1880
|
+
setImmediate(next, err);
|
|
1881
|
+
}
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
// add service info into packageinfo.json.
|
|
1885
|
+
function addServiceInPkgInfo(next) {
|
|
1886
|
+
if (!this.rom) {
|
|
1887
|
+
const filename = path.join(this.packageDir, "packageinfo.json");
|
|
1888
|
+
let pkginfo, validServiceCount;
|
|
1889
|
+
try {
|
|
1890
|
+
const data = fs.readFileSync(filename);
|
|
1891
|
+
validServiceCount = 0;
|
|
1892
|
+
pkginfo = JSON.parse(data);
|
|
1893
|
+
log.silly("package#addServiceInPkgInfo()", "PACKAGEINFO:", pkginfo);
|
|
1894
|
+
} catch (err) {
|
|
1895
|
+
console.error(err);
|
|
1896
|
+
setImmediate(next, err);
|
|
1897
|
+
}
|
|
1898
|
+
this.services.filter(function(s) {
|
|
1899
|
+
return s.valid;
|
|
1900
|
+
}).forEach(function(service) {
|
|
1901
|
+
getPkgServiceNames(service.serviceInfo).forEach(function(serviceName) {
|
|
1902
|
+
this.pkgServiceNames.push(serviceName);
|
|
1903
|
+
validServiceCount++;
|
|
1904
|
+
}.bind(this));
|
|
1905
|
+
}.bind(this));
|
|
1906
|
+
|
|
1907
|
+
if (validServiceCount > 0) {
|
|
1908
|
+
pkginfo.services = this.pkgServiceNames;
|
|
1909
|
+
const data = JSON.stringify(pkginfo, null, 2) + "\n";
|
|
1910
|
+
log.silly("package#addServiceInPkgInfo()", "Modified package.json:" + data);
|
|
1911
|
+
fs.writeFile(path.join(this.packageDir, "packageinfo.json"), data, next);
|
|
1912
|
+
} else {
|
|
1913
|
+
setImmediate(next);
|
|
1914
|
+
}
|
|
1915
|
+
} else {
|
|
1916
|
+
setImmediate(next);
|
|
1917
|
+
}
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
// remove service dir from tmp source dir before packaging
|
|
1921
|
+
function removeServiceFromAppDir(middleCb, next) {
|
|
1922
|
+
if (this.appCount === 0) {
|
|
1923
|
+
return setImmediate(next);
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
let checkDir = this.applicationDir,
|
|
1927
|
+
needRmCheckDir = false;
|
|
1928
|
+
const fileList = fs.readdirSync(checkDir);
|
|
1929
|
+
|
|
1930
|
+
function _checkDir(dir) {
|
|
1931
|
+
if (this.dirName === dir) {
|
|
1932
|
+
try {
|
|
1933
|
+
const rmDir = path.join(this.applicationDir, this.dirName);
|
|
1934
|
+
shelljs.rm('-rf', rmDir);
|
|
1935
|
+
} catch (err) {
|
|
1936
|
+
next(Error("ERROR" + err), null);
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1941
|
+
if (fileList.indexOf('services') !== -1) {
|
|
1942
|
+
checkDir = path.join(this.applicationDir, 'services');
|
|
1943
|
+
const stats = fs.statSync(checkDir);
|
|
1944
|
+
if (stats.isDirectory()) {
|
|
1945
|
+
needRmCheckDir = true;
|
|
1946
|
+
}
|
|
1947
|
+
}
|
|
1948
|
+
if (needRmCheckDir === true) {
|
|
1949
|
+
try {
|
|
1950
|
+
shelljs.rm('-rf', checkDir);
|
|
1951
|
+
} catch (err) {
|
|
1952
|
+
middleCb("ERROR:" + err);
|
|
1953
|
+
}
|
|
1954
|
+
} else {
|
|
1955
|
+
for (const idx in this.services) {
|
|
1956
|
+
this.dirName = this.services[idx].dirName;
|
|
1957
|
+
fileList.forEach(_checkDir, this);
|
|
1958
|
+
}
|
|
1959
|
+
}
|
|
1960
|
+
setImmediate(next);
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
function loadResourceInfo(next) {
|
|
1964
|
+
log.verbose("loadResourceInfo");
|
|
1965
|
+
if (this.rscCount === 0) {
|
|
1966
|
+
return setImmediate(next);
|
|
1967
|
+
}
|
|
1968
|
+
|
|
1969
|
+
this.resources.forEach(function(resource) {
|
|
1970
|
+
const filePath = path.join(resource.dir, "resourceinfo.json");
|
|
1971
|
+
try {
|
|
1972
|
+
const data = fs.readFileSync(filePath),
|
|
1973
|
+
info = JSON.parse(data);
|
|
1974
|
+
resource.info = info;
|
|
1975
|
+
} catch (err) {
|
|
1976
|
+
return setImmediate(next, errHndl.getErrMsg("INVALID_JSON_FORMAT", "resourceinfo.json"));
|
|
1977
|
+
}
|
|
1978
|
+
});
|
|
1979
|
+
log.verbose("num of resourceInfo: " + this.resources.length);
|
|
1980
|
+
setImmediate(next);
|
|
1981
|
+
}
|
|
1982
|
+
|
|
1983
|
+
function checkResourceInfo(next) {
|
|
1984
|
+
log.verbose("checkResourceInfo");
|
|
1985
|
+
const pkgId = this.pkgId;
|
|
1986
|
+
|
|
1987
|
+
this.resources.forEach(function(resource) {
|
|
1988
|
+
if (!resource.info.id) {
|
|
1989
|
+
return setImmediate(next, errHndl.getErrMsg("REQUIRED_FIELD", "id"));
|
|
1990
|
+
} else if (resource.info.id.indexOf(pkgId) !== 0) {
|
|
1991
|
+
return setImmediate(next, errHndl.getErrMsg("INVALID_RESOURCEID", pkgId));
|
|
1992
|
+
} else if (resource.info.id.length < 1 || !(/^[a-z0-9.+-]*$/.test(resource.info.id))) {
|
|
1993
|
+
log.error(errHndl.getErrMsg("INVALID_VALUE", "id", resource.info.id));
|
|
1994
|
+
return setImmediate(next, errHndl.getErrMsg("INVALID_ID_RULE"));
|
|
1995
|
+
}
|
|
1996
|
+
});
|
|
1997
|
+
setImmediate(next);
|
|
1998
|
+
}
|
|
1999
|
+
|
|
2000
|
+
function createResourceDir(next) {
|
|
2001
|
+
log.verbose("createResourceDir");
|
|
2002
|
+
this.resources.forEach(function(resource) {
|
|
2003
|
+
try {
|
|
2004
|
+
const resourceDir = path.join(this.tempDir, "data/usr/palm/resources", resource.info.id);
|
|
2005
|
+
log.verbose("resource dir = " + resourceDir);
|
|
2006
|
+
resource.dstDir = resourceDir;
|
|
2007
|
+
mkdirp.sync(resourceDir);
|
|
2008
|
+
} catch (err) {
|
|
2009
|
+
return setImmediate(next, err);
|
|
2010
|
+
}
|
|
2011
|
+
}.bind(this));
|
|
2012
|
+
log.silly("this.resources:", this.resources);
|
|
2013
|
+
setImmediate(next);
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
function copyResource(next) {
|
|
2017
|
+
log.verbose("copyResource()");
|
|
2018
|
+
if (this.rscCount === 0) {
|
|
2019
|
+
return setImmediate(next);
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
const self = this;
|
|
2023
|
+
try {
|
|
2024
|
+
async.forEachSeries(this.resources, function(resource, next) {
|
|
2025
|
+
self.dataCopyCount++;
|
|
2026
|
+
log.verbose("copyResource(), copy " + resource.dir + " ==> " + resource.dstDir);
|
|
2027
|
+
copySrcToDst.call(self, resource.dir, resource.dstDir, next);
|
|
2028
|
+
}, next);
|
|
2029
|
+
} catch (err) {
|
|
2030
|
+
setImmediate(next, err);
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
|
|
2034
|
+
function addResourceInPkgInfo(next) {
|
|
2035
|
+
log.verbose("addResourceInPkgInfo");
|
|
2036
|
+
if (!this.rom && this.rscCount > 0) {
|
|
2037
|
+
const filename = path.join(this.packageDir, "packageinfo.json");
|
|
2038
|
+
let pkginfo, data;
|
|
2039
|
+
try {
|
|
2040
|
+
data = fs.readFileSync(filename);
|
|
2041
|
+
log.verbose("PACKAGEINFO: " + data);
|
|
2042
|
+
pkginfo = JSON.parse(data);
|
|
2043
|
+
} catch (err) {
|
|
2044
|
+
console.error(err);
|
|
2045
|
+
setImmediate(next, err);
|
|
2046
|
+
}
|
|
2047
|
+
|
|
2048
|
+
this.resources.forEach(function(resource) {
|
|
2049
|
+
this.pkgResourceNames.push(resource.info.id);
|
|
2050
|
+
}.bind(this));
|
|
2051
|
+
|
|
2052
|
+
pkginfo.resources = this.pkgResourceNames;
|
|
2053
|
+
data = JSON.stringify(pkginfo, null, 2) + "\n";
|
|
2054
|
+
log.verbose("Modified package.json: " + data);
|
|
2055
|
+
fs.writeFile(path.join(this.packageDir, "packageinfo.json"), data, next);
|
|
2056
|
+
} else {
|
|
2057
|
+
setImmediate(next);
|
|
2058
|
+
}
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
function copyData(inDirs, forceCopy, next) {
|
|
2062
|
+
log.verbose("package#copyData()", "only run when force packaging");
|
|
2063
|
+
if (forceCopy && this.dataCopyCount === 0) {
|
|
2064
|
+
const dst = path.join(this.tempDir, "data");
|
|
2065
|
+
async.forEachSeries(inDirs, function(src, next) {
|
|
2066
|
+
copySrcToDst.call(this, src, dst, next);
|
|
2067
|
+
}, function(err) {
|
|
2068
|
+
setImmediate(next, err);
|
|
2069
|
+
});
|
|
2070
|
+
} else {
|
|
2071
|
+
return setImmediate(next);
|
|
2072
|
+
}
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2075
|
+
function getPkgServiceNames(serviceInfo) {
|
|
2076
|
+
let serviceNames = [];
|
|
2077
|
+
if (servicePkgMethod === "id") {
|
|
2078
|
+
serviceNames = [serviceInfo.id];
|
|
2079
|
+
} else if (serviceInfo.services) {
|
|
2080
|
+
const serviceProps = (serviceInfo.services instanceof Array)
|
|
2081
|
+
? serviceInfo.services : [serviceInfo.services];
|
|
2082
|
+
serviceNames = serviceProps.map(function(serviceProp) {
|
|
2083
|
+
return serviceProp.name;
|
|
2084
|
+
});
|
|
2085
|
+
}
|
|
2086
|
+
return serviceNames;
|
|
2087
|
+
}
|
|
2088
|
+
|
|
2089
|
+
function setUmask(mask, next) {
|
|
2090
|
+
this.oldmask = process.umask(mask);
|
|
2091
|
+
setImmediate(next);
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2094
|
+
function recoverUmask(next) {
|
|
2095
|
+
if (this.oldmask) {
|
|
2096
|
+
process.umask(this.oldmask);
|
|
2097
|
+
}
|
|
2098
|
+
setImmediate(next);
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2101
|
+
function rewriteFileWoBOMAsUtf8(filePath, rewriteFlag, next) {
|
|
2102
|
+
let data = fs.readFileSync(filePath);
|
|
2103
|
+
const encodingFormat = chardet.detect(Buffer.from(data));
|
|
2104
|
+
|
|
2105
|
+
if (['UTF-8', 'ISO-8895-1'].indexOf(encodingFormat) === -1) {
|
|
2106
|
+
log.silly("package#rewriteFileWoBOMAsUtf8()", "current encoding type:" + encodingFormat);
|
|
2107
|
+
data = encoding.convert(data, "UTF-8", encodingFormat);
|
|
2108
|
+
}
|
|
2109
|
+
data = stripbom(data);
|
|
2110
|
+
|
|
2111
|
+
if (rewriteFlag) {
|
|
2112
|
+
fs.writeFileSync(filePath,
|
|
2113
|
+
data, { encoding: "utf8" }
|
|
2114
|
+
);
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
if (next !== 'undefined' && typeof next === 'function') {
|
|
2118
|
+
setImmediate(next, null, data);
|
|
2119
|
+
}
|
|
2120
|
+
return data;
|
|
2121
|
+
}
|
|
2122
|
+
|
|
2123
|
+
function encryptPackage(next) {
|
|
2124
|
+
if (this.rom || !this.encrypt) { // Do not encrypt when -rom option is given
|
|
2125
|
+
setImmediate(next);
|
|
2126
|
+
return;
|
|
2127
|
+
} else {
|
|
2128
|
+
this.encryptDir = path.join(this.tempDir, "encrypt");
|
|
2129
|
+
const encryptDir = this.encryptDir,
|
|
2130
|
+
encryptCtrlDir = path.join(encryptDir, 'ctrl'),
|
|
2131
|
+
ctrlTgzFile = path.join(encryptDir, 'control.tar.gz'),
|
|
2132
|
+
encryptDataDir = path.join(encryptDir, 'data'),
|
|
2133
|
+
dataTgzFile = path.join(encryptDir, 'data.tar.gz');
|
|
2134
|
+
|
|
2135
|
+
async.series([
|
|
2136
|
+
createDir.bind(this, encryptDir),
|
|
2137
|
+
createDir.bind(this, encryptCtrlDir),
|
|
2138
|
+
createDir.bind(this, encryptDataDir),
|
|
2139
|
+
createkeyIVfile.bind(this, encryptCtrlDir),
|
|
2140
|
+
encryptIpk.bind(this, encryptDataDir),
|
|
2141
|
+
makeTgz.bind(this, encryptDataDir, dataTgzFile),
|
|
2142
|
+
createControlFile.bind(this, encryptCtrlDir, true),
|
|
2143
|
+
makeTgz.bind(this, encryptCtrlDir, ctrlTgzFile),
|
|
2144
|
+
createDebianBinary.bind(this, encryptDir),
|
|
2145
|
+
makeIpk.bind(this, encryptDir)
|
|
2146
|
+
], function(err) {
|
|
2147
|
+
if (err) {
|
|
2148
|
+
setImmediate(next, err);
|
|
2149
|
+
return;
|
|
2150
|
+
}
|
|
2151
|
+
log.verbose("package#encryptPackage()", "success to encrypt pacakge");
|
|
2152
|
+
setImmediate(next);
|
|
2153
|
+
});
|
|
2154
|
+
}
|
|
2155
|
+
}
|
|
2156
|
+
|
|
2157
|
+
function createkeyIVfile(dstPath, next) {
|
|
2158
|
+
// generate random key& IV
|
|
2159
|
+
this.key = Buffer.from(crypto.randomBytes(32), 'base64');
|
|
2160
|
+
this.iv = Buffer.from(crypto.randomBytes(16), 'base64');
|
|
2161
|
+
|
|
2162
|
+
try {
|
|
2163
|
+
// Read public key
|
|
2164
|
+
const publickeyPath = path.join(__dirname, '../', 'files', 'conf', 'pubkey.pem'),
|
|
2165
|
+
publickey = fs.readFileSync(publickeyPath, 'utf8');
|
|
2166
|
+
|
|
2167
|
+
// Encrypt key, iv by publickey
|
|
2168
|
+
const encryptedKey= crypto.publicEncrypt({
|
|
2169
|
+
key: publickey,
|
|
2170
|
+
padding: 4 /* crypto.constants.RSA_PKCS1_OAEP_PADDING */
|
|
2171
|
+
}, Buffer.from(this.key.toString('base64')));
|
|
2172
|
+
|
|
2173
|
+
const encryptedIV= crypto.publicEncrypt({
|
|
2174
|
+
key: publickey,
|
|
2175
|
+
padding: 4 /* crypto.constants.RSA_PKCS1_OAEP_PADDING */
|
|
2176
|
+
}, Buffer.from(this.iv.toString('base64')));
|
|
2177
|
+
|
|
2178
|
+
const keyFilePath = path.join(dstPath, "key");
|
|
2179
|
+
fs.writeFileSync(keyFilePath, encryptedKey, 'binary');
|
|
2180
|
+
|
|
2181
|
+
// write iv file on encrypt/control
|
|
2182
|
+
const ivFilePath = path.join(dstPath , "iv");
|
|
2183
|
+
fs.writeFileSync(ivFilePath, encryptedIV, 'binary');
|
|
2184
|
+
|
|
2185
|
+
} catch (err) {
|
|
2186
|
+
return setImmediate(next, errHndl.getErrMsg(err));
|
|
2187
|
+
}
|
|
2188
|
+
setImmediate(next);
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2191
|
+
function copyOutputToDst(destination, middleCb, next) {
|
|
2192
|
+
let self = this;
|
|
2193
|
+
// copy data directory to destination
|
|
2194
|
+
if (this.rom) {
|
|
2195
|
+
middleCb("Create output directory to " + destination);
|
|
2196
|
+
copySrcToDst.call(this, path.join(this.tempDir, 'data'), destination, next);
|
|
2197
|
+
} else if (this.encrypt) {
|
|
2198
|
+
// copy encrypted ipk to destination
|
|
2199
|
+
if (this.remainPlainIPK) {
|
|
2200
|
+
log.verbose("Remain Plain IPK file from : " + self.tempDir, self.plainIpkFileName);
|
|
2201
|
+
log.verbose(" to : " + destination);
|
|
2202
|
+
middleCb("Remain Plain IPK file " + self.plainIpkFileName + " to " + destination);
|
|
2203
|
+
copySrcToDst.call(self, path.join(self.tempDir, self.plainIpkFileName), destination, function() {
|
|
2204
|
+
middleCb("Create encrypted " + self.ipkFileName + " to " + destination);
|
|
2205
|
+
copySrcToDst.call(self, path.join(self.encryptDir, self.ipkFileName), destination, next);
|
|
2206
|
+
});
|
|
2207
|
+
|
|
2208
|
+
} else {
|
|
2209
|
+
middleCb("Create encrypted " + this.ipkFileName + " to " + destination);
|
|
2210
|
+
copySrcToDst.call(this, path.join(this.encryptDir, this.ipkFileName), destination, next);
|
|
2211
|
+
}
|
|
2212
|
+
} else {
|
|
2213
|
+
// copy plain ipk to destination
|
|
2214
|
+
let outmsg = "Create ";
|
|
2215
|
+
if (this.sign && this.certificate) {
|
|
2216
|
+
outmsg = outmsg.concat("signed ");
|
|
2217
|
+
}
|
|
2218
|
+
middleCb(outmsg + this.ipkFileName + " to " + destination);
|
|
2219
|
+
copySrcToDst.call(this, path.join(this.tempDir, this.ipkFileName), destination, next);
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2222
|
+
|
|
2223
|
+
function encryptIpk(dstPath, next) {
|
|
2224
|
+
log.verbose("package#encryptPackage()#encrypIpk()", "encrypt plain ipk to /encrypt/data");
|
|
2225
|
+
const plainIpkPath = path.join(this.tempDir, this.ipkFileName),
|
|
2226
|
+
encrypedIpkPath = path.join(dstPath, this.ipkFileName);
|
|
2227
|
+
|
|
2228
|
+
let self = this;
|
|
2229
|
+
|
|
2230
|
+
try {
|
|
2231
|
+
const input = fs.createReadStream(plainIpkPath),
|
|
2232
|
+
output = fs.createWriteStream(encrypedIpkPath),
|
|
2233
|
+
cipher = crypto.createCipheriv('aes-256-cbc', this.key, this.iv);
|
|
2234
|
+
|
|
2235
|
+
output.on('close', function() {
|
|
2236
|
+
log.verbose("package#encryptPackage()#encrypIpk()", "encrypted Ipk to " + encrypedIpkPath);
|
|
2237
|
+
if (self.remainPlainIPK === true) {
|
|
2238
|
+
log.verbose("Remain plain IPK file name : " + path.join(plainIpkPath));
|
|
2239
|
+
log.verbose("** to : " + path.join(self.tempDir, self.plainIpkFileName));
|
|
2240
|
+
fs.renameSync(plainIpkPath, path.join(self.tempDir, self.plainIpkFileName));
|
|
2241
|
+
}
|
|
2242
|
+
setImmediate(next);
|
|
2243
|
+
}).
|
|
2244
|
+
on('error', function(err) {
|
|
2245
|
+
setImmediate(next, err);
|
|
2246
|
+
});
|
|
2247
|
+
|
|
2248
|
+
input.pipe(cipher).pipe(output);
|
|
2249
|
+
} catch (err) {
|
|
2250
|
+
setImmediate(next, err);
|
|
2251
|
+
}
|
|
2252
|
+
}
|
|
2253
|
+
}());
|