mirror of
https://github.com/TimeCrafters/timecrafters_configuration_tool_desktop.git
synced 2025-12-16 05:42:35 +00:00
Refactored ROOT_PATH to be a subfolder in the current user's home directory (configs and settings will not need to be manually moved between updates)
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
module TAC
|
||||
ROOT_PATH = File.expand_path("../..", __FILE__)
|
||||
if ARGV.join.include?("--dev")
|
||||
ROOT_PATH = File.expand_path("../..", __FILE__)
|
||||
else
|
||||
ROOT_PATH = "#{Dir.home}/TimeCrafters_Configuration_Tool"
|
||||
end
|
||||
CONFIGS_PATH = "#{ROOT_PATH}/data/configs"
|
||||
SETTINGS_PATH = "#{ROOT_PATH}/data/settings.json"
|
||||
|
||||
MEDIA_PATH = "#{File.expand_path("../..", __FILE__)}/media"
|
||||
|
||||
CONFIG_SPEC_VERSION = 2
|
||||
end
|
||||
Reference in New Issue
Block a user