Skip to content

Commit

Permalink
Use version from control instead of hardcoding
Browse files Browse the repository at this point in the history
  • Loading branch information
therealFoxster committed Jul 22, 2024
1 parent e3ae00e commit 8662db1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ include $(THEOS)/makefiles/common.mk
TWEAK_NAME = DontEatMyContent

DontEatMyContent_FILES = src/Tweak.x src/Settings.x
DontEatMyContent_CFLAGS = -fobjc-arc -I$(THEOS_PROJECT_DIR)
DontEatMyContent_CFLAGS = -fobjc-arc -I$(THEOS_PROJECT_DIR) -DTWEAK_VERSION=$(shell grep 'Version:' control | cut -d ' ' -f 2)
DontEatMyContent_FRAMEWORKS = UIKit

include $(THEOS_MAKE_PATH)/tweak.mk
2 changes: 1 addition & 1 deletion src/Settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#import <YTHeaders/YTSettingsViewController.h>

#define DEMC @"DontEatMyContent"
#define VERSION @"1.1.6"
#define VERSION [NSString stringWithFormat:@"v%@", @(OS_STRINGIFY(TWEAK_VERSION))]
#define LOCALIZED_STRING(s) [bundle localizedStringForKey:s value:nil table:nil]

extern void DEMC_showSnackBar(NSString *text);
Expand Down

0 comments on commit 8662db1

Please sign in to comment.