Skip to content

Commit

Permalink
Change default group device flag to 21
Browse files Browse the repository at this point in the history
  • Loading branch information
jondy committed Sep 21, 2023
1 parent fac3559 commit 12b6978
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/cli/default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ rft_dev_mode = 0
; support_nuitka = 0

;; Group device flag for machine id
group_device_flag = 18
group_device_flag = 21

;;
;; Part 2: global/local/module level options
Expand Down
2 changes: 1 addition & 1 deletion src/cli/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def main_entry():
register_pyarmor(ctx, args.regfile[0])
CONFIG['ctx'] = ctx

mflags = 20, 18, 16, 11, 10
mflags = 21, 20, 18, 16, 11, 10
CONFIG['machid'] = [Pytransform3.get_hd_info(x) for x in mflags]
logging.debug('machine id: %s', CONFIG['machid'])

Expand Down
4 changes: 2 additions & 2 deletions src/cli/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def register_regfile(self, regfile, clean=True):
if 'group.tokens' in namelist:
logger.debug('group license for machines: %s',
[x for x in namelist if x.startswith('tokens')])
for idver in (18, 20, 16, 11):
for idver in (21, 18, 20, 16, 11):
machid = self._get_machine_id(idver).decode('utf-8')
logger.debug('got machine id: %s', machid)
name = '/'.join(['tokens', machid])
Expand Down Expand Up @@ -217,7 +217,7 @@ def generate_group_device(self, devid):
logger.info('generating device file "%s"', path)
os.makedirs(os.path.dirname(path), exist_ok=True)
uinfo = uname()
devflag = self.ctx.cfg['builder'].getint('group_device_flag', 18)
devflag = self.ctx.cfg['builder'].getint('group_device_flag', 21)
machid = self._get_machine_id(devflag).decode('utf-8')
logger.debug('current machine id is "%s"', machid)
tpl = Template('\n'.join([
Expand Down

0 comments on commit 12b6978

Please sign in to comment.