wuyu 1 рік тому
батько
коміт
045a36ceee

+ 3 - 0
packages/易盾游戏加固/i18n/en.js

@@ -0,0 +1,3 @@
+module.exports = {
+    title: 'netease-yidun-encrypt'
+}

+ 3 - 0
packages/易盾游戏加固/i18n/zh.js

@@ -0,0 +1,3 @@
+module.exports = {
+    title: '易盾游戏加固'
+}

+ 14 - 0
packages/易盾游戏加固/main.js

@@ -0,0 +1,14 @@
+const LOG = '[netease-yidun-encrypt]';
+module.exports = {
+    load() {Editor.log(LOG, "欢迎使用易盾游戏加固");},
+    unload() {Editor.log(LOG, "欢迎再次使用易盾游戏加固");},
+    messages: {
+        showPanel() {
+            Editor.Panel.open('netease-yidun-encrypt');
+            Editor.log(LOG, '欢迎使用易盾游戏加固');
+        },
+        "editor:build-finished": function(t, e) {
+            Editor.log(LOG, "易盾游戏加固构建完成");
+        }
+    }
+};

+ 24 - 0
packages/易盾游戏加固/package.json

@@ -0,0 +1,24 @@
+{
+  "name": "netease-yidun-encrypt",
+  "version": "1.0.2",
+  "description": "移动游戏资源加密(Android、iOS、微信小程序)",
+  "author": "网易易盾",
+  "main": "main.js",
+  "main-menu": {
+    "i18n:MAIN_MENU.package.title/i18n:netease-yidun-encrypt.title": {
+      "message": "netease-yidun-encrypt:showPanel"
+    }
+  },
+  "panel": {
+    "main": "panel/index.js",
+    "type": "dockable",
+    "title": "易盾游戏加固",
+    "width": 680,
+    "height": 450,
+    "min-width": 680,
+    "min-height": 450,
+    "max-width": 680,
+    "max-height": 450
+  },
+  "_storeId": "46a133d3655d78b4a72c33d8500b4d79"
+}

+ 23 - 0
packages/易盾游戏加固/panel/index.css

@@ -0,0 +1,23 @@
+h2 {
+    color: #f90;
+    font-size: 15px;
+    width: 680px;
+    text-align: center
+}
+.middle {
+    width: 600px;
+    align-items: center;
+}
+.inputstyle {
+    width: 600px;
+}
+.okstyle {
+    margin-top: 20px;
+    margin-left: 300px;
+    width: 100px;
+    color: #f90;
+    text-align: center;
+}
+.selectstyle {
+    width: 200px;
+}

+ 31 - 0
packages/易盾游戏加固/panel/index.html

@@ -0,0 +1,31 @@
+<div class="layout vertical" > 
+    <h2>配置面板</h2>
+</div>
+<hr />
+
+<div class="layout vertical" > 
+    <h3>构建目录</h3>
+    <ui-input placeholder="E:/tmp/xxx/jsb-link" class="inputstyle" v-value="makeDir"></ui-input>
+</div>
+
+<div class="layout vertical">
+    <h3>密钥</h3> 
+    <ui-input placeholder="aszxsdxzwwdasde" class="inputstyle" v-value="neteaseKey" ></ui-input>
+</div>
+<div class="layout vertical">
+    <h3>排除</h3> 
+    <ui-input placeholder="需要排除的文件后缀,以英文字符‘;’隔开,比如 .json;.zip;.bin" class="inputstyle" v-value="excludeExt" ></ui-input>
+</div> 
+<div class="layout vertical">
+    <h3>游戏类型</h3>
+    <ui-select value="0" class="selectstyle" v-on:change="onBuildTypeChange" v-value="buildTypeSelect" id="buildType">
+        <option value="0">Mobile</option>
+        <option value="1">WechatGame</option>
+    </ui-select>
+</div> 
+
+<hr />
+
+<div class="layout vertical" > 
+    <ui-button class="okstyle" v-on:confirm="oDoEncrypt">加密</ui-button>
+</div>

Різницю між файлами не показано, бо вона завелика
+ 10 - 0
packages/易盾游戏加固/panel/index.js