Skip to content

Commit

Permalink
Fix renotize custom format invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
kobaltcore committed Jan 6, 2024
1 parent f9d4f13 commit 62501e4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/renotize.nim
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,22 @@ proc fullRunCli*(inputFile: string, bundleIdentifier = "", keyFile = "", certFil
if renotizeJsonRaw != "":
let renotizeJson = renotizeJsonRaw.parseJson()
keyFileInt = renotizeJson["privateKey"].getStr().decode()

let tmpKeyFile = getTempDir() / "private-key.pem"
writeFile(tmpKeyFile, keyFileInt)
keyFileInt = tmpKeyFile

certFileInt = renotizeJson["certificate"].getStr().decode()

let tmpCertFile = getTempDir() / "certificate.cer"
writeFile(tmpCertFile, certFileInt)
certFileInt = tmpCertFile

appStoreKeyFileInt = renotizeJson["appStoreKey"].getStr().decode()

let tmpAppStoreKeyFile = getTempDir() / "app-store-key.json"
writeFile(tmpAppStoreKeyFile, appStoreKeyFileInt)
appStoreKeyFileInt = tmpAppStoreKeyFile
else:
if keyFile == "":
keyFileInt = getEnv("RN_KEY_FILE")
Expand Down

0 comments on commit 62501e4

Please sign in to comment.