Skip to content

Commit 4202fb8

Browse files
committed
add mode param when call cocos package encrypt
1 parent a8a5b89 commit 4202fb8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/plugin_compile/build_android.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ def do_build_apk(self, build_mode, no_apk, output_dir, custom_step_args, compile
500500
else:
501501
path = os.path.realpath(os.path.dirname(__file__))
502502
path = os.path.join(path, '../plugin_package/cocospackage')
503-
cmd = '%s encrypt -p %s --runincocos --runinbuild --noupdate' % (path, self.app_android_root)
503+
cmd = '%s encrypt -p %s --mode %s --runincocos --runinbuild --noupdate' % (path, self.app_android_root, build_mode)
504504
self._run_cmd(cmd)
505505
except:
506506
pass

plugins/plugin_compile/project_compile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ def build_ios(self):
649649
else:
650650
path = os.path.realpath(os.path.dirname(__file__))
651651
path = os.path.join(path, '../plugin_package/cocospackage')
652-
cmd = '%s encrypt -p %s --platform ios --runincocos --runinbuild --noupdate' % (path, self._project.get_project_dir())
652+
cmd = '%s encrypt -p %s --mode %s --platform ios --runincocos --runinbuild --noupdate' % (path, self._project.get_project_dir(), self._mode)
653653
self._run_cmd(cmd)
654654
except:
655655
pass

0 commit comments

Comments
 (0)