5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@@ -149,8 +149,11 @@ jobs:
|
|||||||
security import certificate.p12 -k build.keychain -P $MACOS_CERTIFICATE_PWD -T /usr/bin/codesign
|
security import certificate.p12 -k build.keychain -P $MACOS_CERTIFICATE_PWD -T /usr/bin/codesign
|
||||||
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k Techminohaowan build.keychain
|
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k Techminohaowan build.keychain
|
||||||
/usr/bin/codesign --force --deep -s 79B81FC5EA155243C973B5417B0996501F00EF55 ./Techmino.app -v
|
/usr/bin/codesign --force --deep -s 79B81FC5EA155243C973B5417B0996501F00EF55 ./Techmino.app -v
|
||||||
|
- name: Pack Techmino
|
||||||
|
run: |
|
||||||
|
zip -r -y Techmino-Packed.app.zip Techmino.app
|
||||||
- name: Upload
|
- name: Upload
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Techmino_${{ env.Version }}_${{ env.CommitID }}_macOS
|
name: Techmino_${{ env.Version }}_${{ env.CommitID }}_macOS
|
||||||
path: Techmino-Packed.app
|
path: Techmino-Packed.app.zip
|
||||||
2
.github/workflows/getVersion.py
vendored
2
.github/workflows/getVersion.py
vendored
@@ -2,7 +2,7 @@ import re
|
|||||||
def getVersion():
|
def getVersion():
|
||||||
with open("conf.lua", "r", encoding="utf-8") as file:
|
with open("conf.lua", "r", encoding="utf-8") as file:
|
||||||
data = file.read()
|
data = file.read()
|
||||||
versionCode = re.search("build=(\\d+)", data).group()
|
versionCode = re.search("build=(\\d+)", data).group(1)
|
||||||
versionName = re.search('(?<=string=").*(?=@)', data).group()
|
versionName = re.search('(?<=string=").*(?=@)', data).group()
|
||||||
return versionCode, versionName
|
return versionCode, versionName
|
||||||
|
|
||||||
|
|||||||
2
.github/workflows/updateOSXVersion.py
vendored
2
.github/workflows/updateOSXVersion.py
vendored
@@ -62,4 +62,4 @@ versionCode, versionName = getVersion.getVersion()
|
|||||||
|
|
||||||
print("Updating to", versionName)
|
print("Updating to", versionName)
|
||||||
with open("Techmino.app/Contents/info.plist", "w") as file:
|
with open("Techmino.app/Contents/info.plist", "w") as file:
|
||||||
file.write(info % (versionName, datetime.datetime.today().year))
|
file.write(info % (versionName, datetime.datetime.today().year))
|
||||||
|
|||||||
Reference in New Issue
Block a user