mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-19 13:54:23 +01:00
Added BaseNoGui.VERSION_NAME_LONG: it includes "Hourly Build DATE" in case of a hourly build
This commit is contained in:
parent
4688a7a23f
commit
e8c4980c4e
@ -1787,7 +1787,7 @@ public class Base {
|
||||
|
||||
g.setFont(new Font("SansSerif", Font.PLAIN, 11));
|
||||
g.setColor(Color.white);
|
||||
g.drawString(BaseNoGui.VERSION_NAME, 33, 20);
|
||||
g.drawString(BaseNoGui.VERSION_NAME_LONG, 33, 20);
|
||||
}
|
||||
};
|
||||
window.addMouseListener(new MouseAdapter() {
|
||||
|
@ -2297,9 +2297,7 @@ public class Editor extends JFrame implements RunnerListener {
|
||||
return false;
|
||||
}
|
||||
header.rebuild();
|
||||
// Set the title of the window to "sketch_070752a - Processing 0126"
|
||||
setTitle(I18n.format(_("{0} | Arduino {1}"), sketch.getName(),
|
||||
BaseNoGui.VERSION_NAME));
|
||||
setTitle(I18n.format(_("{0} | Arduino {1}"), sketch.getName(), BaseNoGui.VERSION_NAME_LONG));
|
||||
// Disable untitled setting from previous document, if any
|
||||
untitled = false;
|
||||
|
||||
|
@ -464,7 +464,7 @@ public class EditorStatus extends JPanel /*implements ActionListener*/ {
|
||||
copyErrorButton.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
String message = "";
|
||||
message += _("Arduino: ") + BaseNoGui.VERSION_NAME + " (" + System.getProperty("os.name") + "), ";
|
||||
message += _("Arduino: ") + BaseNoGui.VERSION_NAME_LONG + " (" + System.getProperty("os.name") + "), ";
|
||||
message += _("Board: ") + "\"" + Base.getBoardPreferences().get("name") + "\"\n\n";
|
||||
message += editor.console.consoleTextPane.getText().trim();
|
||||
if ((PreferencesData.getBoolean("build.verbose")) == false) {
|
||||
|
@ -32,7 +32,22 @@ public class BaseNoGui {
|
||||
/** Version string to be used for build */
|
||||
public static final int REVISION = 10605;
|
||||
/** Extended version string displayed on GUI */
|
||||
static String VERSION_NAME = "1.6.5";
|
||||
public static final String VERSION_NAME = "1.6.5";
|
||||
public static final String VERSION_NAME_LONG;
|
||||
|
||||
static {
|
||||
String versionNameLong = VERSION_NAME;
|
||||
File hourlyBuildTxt = new File(getContentFile("lib"), "hourlyBuild.txt");
|
||||
if (hourlyBuildTxt.exists() && hourlyBuildTxt.canRead()) {
|
||||
versionNameLong += " Hourly Build";
|
||||
try {
|
||||
versionNameLong += " " + FileUtils.readFileToString(hourlyBuildTxt).trim();
|
||||
} catch (IOException e) {
|
||||
//noop
|
||||
}
|
||||
}
|
||||
VERSION_NAME_LONG = versionNameLong;
|
||||
}
|
||||
|
||||
static File buildFolder;
|
||||
|
||||
|
@ -4,6 +4,10 @@
|
||||
<!--echo message="os.arch = ${os.arch}" /-->
|
||||
<!--echo message="os.version = ${os.version}" /-->
|
||||
|
||||
<tstamp>
|
||||
<format property="BUILD_DATE" pattern="yyyy/MM/dd hh:mm"/>
|
||||
</tstamp>
|
||||
|
||||
<!-- Sets properties for macosx/windows/linux depending on current system -->
|
||||
<condition property="platform" value="macosx-old">
|
||||
<and>
|
||||
@ -59,6 +63,8 @@
|
||||
|
||||
<target name="build" description="Build Arduino.">
|
||||
<antcall target="${platform}-build" />
|
||||
|
||||
<antcall target="generate-hourly-build-txt"/>
|
||||
</target>
|
||||
|
||||
<target name="run" description="Run Arduino.">
|
||||
@ -385,7 +391,7 @@
|
||||
<antcall target="macosx-run-common"/>
|
||||
</target>
|
||||
|
||||
<target name="macosx-run" depends="macosx-build" description="Run Mac OS X version">
|
||||
<target name="macosx-run" depends="build" description="Run Mac OS X version">
|
||||
<antcall target="macosx-run-common"/>
|
||||
</target>
|
||||
|
||||
@ -393,7 +399,7 @@
|
||||
<antcall target="macosx-debug-common"/>
|
||||
</target>
|
||||
|
||||
<target name="macosx-debug" depends="macosx-build" description="Run Mac OS X version">
|
||||
<target name="macosx-debug" depends="build" description="Run Mac OS X version">
|
||||
<antcall target="macosx-debug-common"/>
|
||||
</target>
|
||||
|
||||
@ -468,7 +474,7 @@
|
||||
<antcall target="macosx-dist-common"/>
|
||||
</target>
|
||||
|
||||
<target name="macosx-dist" if="macosx" depends="macosx-build" description="Create a downloadable .zip for the Mac OS X version">
|
||||
<target name="macosx-dist" if="macosx" depends="build" description="Create a downloadable .zip for the Mac OS X version">
|
||||
<antcall target="macosx-dist-common"/>
|
||||
</target>
|
||||
|
||||
@ -637,11 +643,11 @@
|
||||
<antcall target="package-library-index-json-bundle"/>
|
||||
</target>
|
||||
|
||||
<target name="linux32-run" depends="linux32-build" description="Run Linux (32-bit) version">
|
||||
<target name="linux32-run" depends="build" description="Run Linux (32-bit) version">
|
||||
<exec executable="./linux/work/arduino" spawn="false" failonerror="true"/>
|
||||
</target>
|
||||
|
||||
<target name="linux64-run" depends="linux64-build" description="Run Linux (64-bit) version">
|
||||
<target name="linux64-run" depends="build" description="Run Linux (64-bit) version">
|
||||
<exec executable="./linux/work/arduino" spawn="false" failonerror="true"/>
|
||||
</target>
|
||||
|
||||
@ -858,12 +864,12 @@
|
||||
<antcall target="package-library-index-json-bundle"/>
|
||||
</target>
|
||||
|
||||
<target name="windows-run" depends="windows-build"
|
||||
<target name="windows-run" depends="build"
|
||||
description="Run windows version">
|
||||
<exec executable="windows/work/arduino.exe" dir="windows/work" spawn="true" failonerror="true"/>
|
||||
</target>
|
||||
|
||||
<target name="windows-dist" depends="windows-build" description="Create .zip files of windows version">
|
||||
<target name="windows-dist" depends="build" description="Create .zip files of windows version">
|
||||
|
||||
<loadproperties srcfile="${WINDOWS_BUNDLED_JVM}/release" prefix="windows"/>
|
||||
|
||||
@ -989,4 +995,8 @@
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="generate-hourly-build-txt" if="hourly">
|
||||
<echo file="${staging_folder}/work/${staging_hardware_folder}/../lib/hourlyBuild.txt">${BUILD_DATE}</echo>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
|
Loading…
x
Reference in New Issue
Block a user