mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
30febbe3d2
Adds basic CircleCI workflow to sign, notarize, and staple MacOS app bundle and associated DMG, then publishes signed binary in CircleCI artifacts Signed-off-by: Adam Treat <treat.adam@gmail.com>
17 lines
389 B
Python
17 lines
389 B
Python
import re
|
|
import sys
|
|
|
|
ID_REG = r"id: (.*)"
|
|
|
|
def main() -> None:
|
|
notary_log = sys.argv[1]
|
|
with open(notary_log, "r") as f:
|
|
notary_output = f.read()
|
|
id_m = re.search(ID_REG, notary_output)
|
|
if id_m:
|
|
print(id_m.group(1))
|
|
else:
|
|
raise RuntimeError("Unable to parse ID from notarization logs")
|
|
|
|
if __name__ == "__main__":
|
|
main() |