Skip to content

Commit 6a240e1

Browse files
committed
Setup BartyCrouch run script
1 parent 7f98df3 commit 6a240e1

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

.bartycrouch.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ sortByKeys = true
3232
[lint]
3333
paths = ["."]
3434
duplicateKeys = true
35-
emptyValues = true
35+
emptyValues = false

MonitorControl.xcodeproj/project.pbxproj

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@
342342
buildPhases = (
343343
28D1DE0C227FCFAF004CB494 /* [Format] Run SwiftFormat */,
344344
F03A8DF01FFB9D4C0034DC27 /* [Lint] Run SwiftLint */,
345+
6CB1BDB2253C7EBE00B52124 /* [Localization] Run BartyCrouch */,
345346
56754EA71D9A4016007BCDC5 /* Sources */,
346347
56754EA81D9A4016007BCDC5 /* Frameworks */,
347348
56754EA91D9A4016007BCDC5 /* Resources */,
@@ -505,6 +506,24 @@
505506
shellPath = "/bin/bash -euo pipefail";
506507
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";
507508
};
509+
6CB1BDB2253C7EBE00B52124 /* [Localization] Run BartyCrouch */ = {
510+
isa = PBXShellScriptBuildPhase;
511+
buildActionMask = 2147483647;
512+
files = (
513+
);
514+
inputFileListPaths = (
515+
);
516+
inputPaths = (
517+
);
518+
name = "[Localization] Run BartyCrouch";
519+
outputFileListPaths = (
520+
);
521+
outputPaths = (
522+
);
523+
runOnlyForDeploymentPostprocessing = 0;
524+
shellPath = /bin/sh;
525+
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";
526+
};
508527
F03A8DF01FFB9D4C0034DC27 /* [Lint] Run SwiftLint */ = {
509528
isa = PBXShellScriptBuildPhase;
510529
buildActionMask = 2147483647;

MonitorControl/Model/Display.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class Display {
6969

7070
if roundChiclet {
7171
let osdChiclet = OSDUtils.chiclet(fromValue: Float(value), maxValue: Float(maxValue))
72-
72+
7373
filledChiclets = Int(round(osdChiclet))
7474
totalChiclets = 16
7575
} else {

0 commit comments

Comments
 (0)