modified: .github/workflows/mikrotik_patch.yml

modified:   patch.py
This commit is contained in:
zyb
2024-07-16 14:23:53 +08:00
parent 195b1867b0
commit 7a31e6ade8
2 changed files with 4 additions and 4 deletions

View File

@@ -137,13 +137,13 @@ if __name__ == '__main__':
subparsers = parser.add_subparsers(dest="command")
npk_parser = subparsers.add_parser('npk',help='patch and sign npk file')
npk_parser.add_argument('input',type=str, help='Input file')
npk_parser.add_argument('-o','--output',type=str,help='Output file')
npk_parser.add_argument('-O','--output',type=str,help='Output file')
kernel_parser = subparsers.add_parser('kernel',help='patch kernel file')
kernel_parser.add_argument('input',type=str, help='Input file')
kernel_parser.add_argument('-o','--output',type=str,help='Output file')
kernel_parser.add_argument('-O','--output',type=str,help='Output file')
netinstall_parser = subparsers.add_parser('netinstall',help='patch netinstall file')
netinstall_parser.add_argument('input',type=str, help='Input file')
netinstall_parser.add_argument('-o','--output',type=str,help='Output file')
netinstall_parser.add_argument('-O','--output',type=str,help='Output file')
args = parser.parse_args()
key_dict = {
bytes.fromhex(os.environ['MIKRO_LICENSE_PUBLIC_KEY']):bytes.fromhex(os.environ['CUSTOM_LICENSE_PUBLIC_KEY']),