From 68307368e551cbcb4ba7830787c1917d02c33ff5 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Fri, 25 Aug 2017 10:17:10 +0300 Subject: [PATCH] link with zlib; put version to separate file views/VERSION --- dub.json | 4 +++- src/dlangide/ui/frame.d | 3 ++- views/VERSION | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 views/VERSION diff --git a/dub.json b/dub.json index 7ab5943..a9f9df2 100644 --- a/dub.json +++ b/dub.json @@ -12,7 +12,7 @@ "stringImportPaths": ["views", "views/res", "views/res/i18n", "views/res/mdpi", "views/res/hdpi"], "dependencies": { - "dlangui": "==0.9.94", + "dlangui": "==0.9.95", "dcd": "~>0.9.1" }, @@ -20,6 +20,8 @@ "libs/windows/x86/mago-mi.exe" ], + "libs-linux": ["z"], + "configurations" : [ { "name" : "default" diff --git a/src/dlangide/ui/frame.d b/src/dlangide/ui/frame.d index 9a85863..aca5865 100644 --- a/src/dlangide/ui/frame.d +++ b/src/dlangide/ui/frame.d @@ -46,7 +46,8 @@ import std.path; immutable string HELP_PAGE_URL = "https://github.com/buggins/dlangide/wiki"; // TODO: get version from GIT commit -immutable dstring DLANGIDE_VERSION = "v0.7.47"d; +//version is now stored in file views/VERSION +immutable dstring DLANGIDE_VERSION = toUTF32(import("VERSION")); bool isSupportedSourceTextFileFormat(string filename) { return (filename.endsWith(".d") || filename.endsWith(".di") || filename.endsWith(".dt") || filename.endsWith(".txt") || filename.endsWith(".cpp") || filename.endsWith(".h") || filename.endsWith(".c") diff --git a/views/VERSION b/views/VERSION new file mode 100644 index 0000000..c836689 --- /dev/null +++ b/views/VERSION @@ -0,0 +1 @@ +v0.7.48 \ No newline at end of file