diff --git a/dye.nimble b/dye.nimble index 94e7ed3..5ebd5fe 100644 --- a/dye.nimble +++ b/dye.nimble @@ -20,10 +20,6 @@ task lint, "Lint all *.nim files": task b, "Build for release": exec "nimble install -d:release && nim c -d:ssl -d:release src/dye && mkdir -p bin && mv -f src/dye bin/" - -task bz, "Build using zig as a c compiler": - exec "nimble install -y -d && nim c -d:release -d:ssl --cc:clang --clang.exe:'scripts/zigcc' src/dye.nim && mkdir -p bin && mv -f src/dye bin/" - task bi, "Build and install to your path (/usr/bin/)": exec "nimble install -d:release && nim c -d:release -d:ssl src/dye" diff --git a/lib/updates.nim b/lib/updates.nim index 3b8a914..a6a99b1 100644 --- a/lib/updates.nim +++ b/lib/updates.nim @@ -1,7 +1,7 @@ import os, harpoon, uri, strutils, asyncdispatch, distros, strformat, osproc, zippy/ziparchives proc u*(v: string): void = - let cv = getContent(parseUri "https://raw.githubusercontent.com/Infinitybeond1/dye/master/dye.nimble").splitLines()[0].split("=")[1].strip().replace("\"", "") + let cv = getContent(parseUri "https://raw.githubusercontent.com/Infinitybeond1/dye/main/dye.nimble").splitLines()[0].split("=")[1].strip().replace("\"", "") if v.replace(".", "").strip().parseInt() < cv.replace(".", "").strip().parseInt(): stdout.write("Updates are availible, would you like to update (Y/n): ") let a = readLine(stdin).toLower() @@ -36,7 +36,7 @@ proc u*(v: string): void = elif v.replace(".", "").strip().parseInt() == cv.replace(".", "").strip().parseInt(): echo "You're all up to date" else: - echo fmt"Your version: {v}\nCurrent version: {cv}" + echo "Your version: $#\nCurrent version: $#" % @[v, cv] proc tu*(v: string): void = let cv = getContent(parseUri "https://raw.githubusercontent.com/Infinitybeond1/dye/master/version.txt") diff --git a/src/dye.nim b/src/dye.nim index 2626f94..31055ee 100644 --- a/src/dye.nim +++ b/src/dye.nim @@ -158,14 +158,8 @@ if args.flip.seen: except: stdout.styledWriteLine(fgRed, "Error: ", fgWhite, getCurrentExceptionMsg()) continue -<<<<<<< HEAD -======= -<<<<<<< HEAD -======= elif args.update.seen: u(versionNum) ->>>>>>> 45263dd (feat: update command for macos and linux) ->>>>>>> 025954b (feat: update command for macos and linux) elif args.luma.seen: for img in files: try: