Setup BartyCrouch run script

This commit is contained in:
JoniVR 2020-10-18 15:55:22 +02:00
parent 7f98df3a91
commit 6a240e199a
3 changed files with 21 additions and 2 deletions

View file

@ -32,4 +32,4 @@ sortByKeys = true
[lint]
paths = ["."]
duplicateKeys = true
emptyValues = true
emptyValues = false

View file

@ -342,6 +342,7 @@
buildPhases = (
28D1DE0C227FCFAF004CB494 /* [Format] Run SwiftFormat */,
F03A8DF01FFB9D4C0034DC27 /* [Lint] Run SwiftLint */,
6CB1BDB2253C7EBE00B52124 /* [Localization] Run BartyCrouch */,
56754EA71D9A4016007BCDC5 /* Sources */,
56754EA81D9A4016007BCDC5 /* Frameworks */,
56754EA91D9A4016007BCDC5 /* Resources */,
@ -505,6 +506,24 @@
shellPath = "/bin/bash -euo pipefail";
shellScript = "version_number=\"$(/usr/libexec/PlistBuddy -c \"Print CFBundleShortVersionString\" \"${INFOPLIST_FILE/Helper/}\")\"\n\n/usr/libexec/PlistBuddy -c \"Set :CFBundleShortVersionString ${version_number}\" \"${INFOPLIST_FILE/Helper/}\"\n/usr/libexec/PlistBuddy -c \"Set :CFBundleShortVersionString ${version_number}\" \"${INFOPLIST_FILE}\"\n";
};
6CB1BDB2253C7EBE00B52124 /* [Localization] Run BartyCrouch */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
);
name = "[Localization] Run BartyCrouch";
outputFileListPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "if which bartycrouch > /dev/null; then\n bartycrouch update -x\n bartycrouch lint -x\nelse\n echo \"warning: BartyCrouch not installed, download it from https://github.com/Flinesoft/BartyCrouch\"\nfi\n";
};
F03A8DF01FFB9D4C0034DC27 /* [Lint] Run SwiftLint */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;

View file

@ -69,7 +69,7 @@ class Display {
if roundChiclet {
let osdChiclet = OSDUtils.chiclet(fromValue: Float(value), maxValue: Float(maxValue))
filledChiclets = Int(round(osdChiclet))
totalChiclets = 16
} else {