mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-19 22:15:46 +01:00
Remove date from config.version.
This commit is contained in:
@@ -1866,10 +1866,14 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
|||||||
function (args) {
|
function (args) {
|
||||||
if (args.bang)
|
if (args.bang)
|
||||||
dactyl.open("about:");
|
dactyl.open("about:");
|
||||||
else
|
else {
|
||||||
commandline.commandOutput(<>
|
let date = config.buildDate;
|
||||||
{config.appName} {config.version} running on:<br/>{navigator.userAgent}
|
date = date ? " (" + date + ")" : "";
|
||||||
</>);
|
|
||||||
|
commandline.commandOutput(
|
||||||
|
<div>{config.appName} {config.version}{date} running on: </div> +
|
||||||
|
<div>{navigator.userAgent}</div>)
|
||||||
|
}
|
||||||
}, {
|
}, {
|
||||||
argCount: "0",
|
argCount: "0",
|
||||||
bang: true
|
bang: true
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ completion.waitingFor-1 = Waiting for %S
|
|||||||
completion.waitingForKeyPress = Waiting for key press
|
completion.waitingForKeyPress = Waiting for key press
|
||||||
completion.matchIndex-2 = match %S of %S
|
completion.matchIndex-2 = match %S of %S
|
||||||
|
|
||||||
dactyl.created-1 = "(created %S)"
|
dactyl.created-1 = created %S
|
||||||
dactyl.parsingCommandLine-1 = Parsing command line options: %S
|
dactyl.parsingCommandLine-1 = Parsing command line options: %S
|
||||||
dactyl.notCommand-2 = E492: Not a %S command: %S
|
dactyl.notCommand-2 = E492: Not a %S command: %S
|
||||||
dactyl.sourcingPlugins-1 = Sourcing plugin directory: %S...
|
dactyl.sourcingPlugins-1 = Sourcing plugin directory: %S...
|
||||||
|
|||||||
@@ -309,11 +309,17 @@ var ConfigBase = Class("ConfigBase", {
|
|||||||
version: Class.memoize(function () {
|
version: Class.memoize(function () {
|
||||||
if (this.VCSPath)
|
if (this.VCSPath)
|
||||||
return io.system(["hg", "-R", this.VCSPath, "log", "-r.",
|
return io.system(["hg", "-R", this.VCSPath, "log", "-r.",
|
||||||
"--template=hg{rev}-" + this.branch + " ({date|isodate})"]).output;
|
"--template=hg{rev}." + this.branch]).output;
|
||||||
let version = this.addon.version;
|
|
||||||
|
return this.addon.version;
|
||||||
|
}),
|
||||||
|
|
||||||
|
buildDate: Class.memoize(function () {
|
||||||
|
if (this.VCSPath)
|
||||||
|
return io.system(["hg", "-R", this.VCSPath, "log", "-r.",
|
||||||
|
"--template={date|isodate}"]).output;
|
||||||
if ("@DATE@" !== "@" + "DATE@")
|
if ("@DATE@" !== "@" + "DATE@")
|
||||||
version += " " + _("dactyl.created", "@DATE@");
|
return _("dactyl.created", "@DATE@");
|
||||||
return version;
|
|
||||||
}),
|
}),
|
||||||
|
|
||||||
get fileExt() this.name.slice(0, -6),
|
get fileExt() this.name.slice(0, -6),
|
||||||
|
|||||||
Reference in New Issue
Block a user