mirror of
https://github.com/MonitorControl/MonitorControl.git
synced 2026-05-15 14:15:55 -06:00
Setup BartyCrouch run script
This commit is contained in:
parent
7f98df3a91
commit
6a240e199a
3 changed files with 21 additions and 2 deletions
|
|
@ -32,4 +32,4 @@ sortByKeys = true
|
|||
[lint]
|
||||
paths = ["."]
|
||||
duplicateKeys = true
|
||||
emptyValues = true
|
||||
emptyValues = false
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue