Add --project-directory option to generate command to easily use relative path
gitea-openium/resgen.swift/pipeline/head There was a failure building this commit

This commit is contained in:
t.schmitt committed 2022-08-31 16:42:22 +02:00
1 parent 3d60513c08
commit e9bc779da6
22 files changed
+136 -67

No files matched your search

@@ -40,20 +40,20 @@ struct Twine: ParsableCommand {
// Generate strings files (lproj files)
for lang in options.langs {
Shell.shell(Self.twineExecutable,
Shell.shell([Self.twineExecutable,
"generate-localization-file", options.inputFile,
"--lang", "\(lang)",
"\(options.outputPath)/\(lang).lproj/\(options.inputFilenameWithoutExt).strings",
"--tags=ios,iosonly,iosOnly")
"--tags=ios,iosonly,iosOnly"])
}
// Generate extension
Shell.shell(Self.twineExecutable,
Shell.shell([Self.twineExecutable,
"generate-localization-file", options.inputFile,
"--format", "apple-swift",
"--lang", "\(options.defaultLang)",
options.extensionFilePath,
"--tags=ios,iosonly,iosOnly")
"--tags=ios,iosonly,iosOnly"])
print("[\(Self.toolName)] Strings generated")
}