diff options
| author | DemonKingSwarn <rockingswarn@gmail.com> | 2025-11-10 15:30:15 +0530 |
|---|---|---|
| committer | DemonKingSwarn <rockingswarn@gmail.com> | 2025-11-10 15:30:15 +0530 |
| commit | 80ba776bfae57f2622caa0ecf8a5eb3821ab08b0 (patch) | |
| tree | d769b644d47c4e19126c4b1b26dd7d14fed90987 /Program.cs | |
| parent | a98522b15e3819a5172a8a97b2057cb7c0c1196f (diff) | |
| download | hypr-wellbeing-80ba776bfae57f2622caa0ecf8a5eb3821ab08b0.zip hypr-wellbeing-80ba776bfae57f2622caa0ecf8a5eb3821ab08b0.tar.gz | |
chore: widnows support added
Diffstat (limited to 'Program.cs')
| -rw-r--r-- | Program.cs | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,5 +1,6 @@ using System.IO; using System.Runtime.InteropServices; +using Newtonsoft.Json; using hyprwatch.Logger; using hyprwatch.Report.Weekly; @@ -7,11 +8,18 @@ class Program { static void Main(string[] args) { + string os; + string version = "0.0.7"; string homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); + string configDir = Path.Combine(homeDirectory, ".config", "hypr-wellbeing"); + string configFile = Path.Combine(configDir, "config.json"); string hyprwatchDirectory = Path.Combine(homeDirectory, ".cache", "hyprwatch"); string dailyDataDirectory = Path.Combine(hyprwatchDirectory, "daily_data"); Directory.CreateDirectory(dailyDataDirectory); + Directory.CreateDirectory(configDir); + + if (args.Length == 0 || args[0] != "-d" && args[0] != "--show" && args[0] != "--weekly" && args[0] != "-v") { |
