Loading b2g/simulator/build_xpi.py +3 −1 Original line number Diff line number Diff line Loading @@ -48,10 +48,12 @@ def process_package_overload(src, dst, version, app_buildid): # First replace numeric version like '1.3' # Then replace with 'slashed' version like '1_4' # Finally set the full length addon version like 1.3.20131230 # (reduce the app build id to only the build date # as addon manager doesn't handle big ints in addon versions) defines = { "NUM_VERSION": version, "SLASH_VERSION": version.replace(".", "_"), "FULL_VERSION": ("%s.%s" % (version, app_buildid)) "FULL_VERSION": ("%s.%s" % (version, app_buildid[:8])) } pp = Preprocessor(defines=defines) pp.do_filter("substitution") Loading b2g/simulator/lib/simulator-process.js +4 −2 Original line number Diff line number Diff line Loading @@ -145,8 +145,10 @@ exports.SimulatorProcess = Class({ Linux: "b2g-bin", }; console.log("bin url: "+bin+"/"+executables[Runtime.OS]); let path = bin + "/" + executables[Runtime.OS]; let path = bin; path += Runtime.OS == "WINNT" ? "\\" : "/"; path += executables[Runtime.OS]; console.log("simulator path: " + path); let executable = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsIFile); executable.initWithPath(path); Loading Loading
b2g/simulator/build_xpi.py +3 −1 Original line number Diff line number Diff line Loading @@ -48,10 +48,12 @@ def process_package_overload(src, dst, version, app_buildid): # First replace numeric version like '1.3' # Then replace with 'slashed' version like '1_4' # Finally set the full length addon version like 1.3.20131230 # (reduce the app build id to only the build date # as addon manager doesn't handle big ints in addon versions) defines = { "NUM_VERSION": version, "SLASH_VERSION": version.replace(".", "_"), "FULL_VERSION": ("%s.%s" % (version, app_buildid)) "FULL_VERSION": ("%s.%s" % (version, app_buildid[:8])) } pp = Preprocessor(defines=defines) pp.do_filter("substitution") Loading
b2g/simulator/lib/simulator-process.js +4 −2 Original line number Diff line number Diff line Loading @@ -145,8 +145,10 @@ exports.SimulatorProcess = Class({ Linux: "b2g-bin", }; console.log("bin url: "+bin+"/"+executables[Runtime.OS]); let path = bin + "/" + executables[Runtime.OS]; let path = bin; path += Runtime.OS == "WINNT" ? "\\" : "/"; path += executables[Runtime.OS]; console.log("simulator path: " + path); let executable = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsIFile); executable.initWithPath(path); Loading