mirror of
https://github.com/elseif/MikroTikPatch
synced 2026-07-17 10:39:40 +00:00
modified: .github/workflows/mikrotik_patch_7.yml
modified: npk.py
This commit is contained in:
parent
676f0e0f82
commit
1935f35864
4
.github/workflows/mikrotik_patch_7.yml
vendored
4
.github/workflows/mikrotik_patch_7.yml
vendored
@ -74,7 +74,7 @@ jobs:
|
||||
BUILD_TIME="${{ github.event.inputs.buildtime }}"
|
||||
RELEASE="${{ github.event.inputs.release }}"
|
||||
if [ -z "$BUILD_TIME" ]; then
|
||||
BUILD_TIME=$(date +'%Y%m%d%H%M%S')
|
||||
BUILD_TIME=$(date +'%s')
|
||||
fi
|
||||
if [ -z "$RELEASE" ]; then
|
||||
RELEASE=false
|
||||
@ -83,7 +83,7 @@ jobs:
|
||||
CHANNEL="${{ github.event.inputs.channel }}"
|
||||
MATRIX_JSON=$(jq -nc --arg arch "$ARCH" --arg channel "$CHANNEL" '[{arch: $arch, channel: $channel}]')
|
||||
else
|
||||
BUILD_TIME=$(date +'%Y%m%d%H%M%S')
|
||||
BUILD_TIME=$(date +'%s')
|
||||
RELEASE=true
|
||||
MATRIX_JSON='[
|
||||
{"arch":"x86","channel":"stable"},
|
||||
|
||||
2
npk.py
2
npk.py
@ -228,7 +228,7 @@ class NovaPackage(Package):
|
||||
def sign(self,kcdsa_private_key:bytes,eddsa_private_key:bytes):
|
||||
import hashlib
|
||||
from mikro import mikro_kcdsa_sign,mikro_eddsa_sign
|
||||
build_time = os.environ['BUILD_TIME'] if 'BUILD_TIME' in os.environ else None
|
||||
build_time = os.getenv('BUILD_TIME',None)
|
||||
if len(self._packages) > 0:
|
||||
if build_time:
|
||||
self[NpkPartID.PKG_INFO].data._build_time = int(build_time)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user