Skip to content

Commit 1b0e47e

Browse files
committed
Merge remote-tracking branch 'arduino/ide-1.5.x' into ide-1.5.x
2 parents d3be60e + 17d9f11 commit 1b0e47e

File tree

5 files changed

+18
-5
lines changed

5 files changed

+18
-5
lines changed

app/src/processing/app/Base.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static public void main(String args[]) throws Exception {
132132
File versionFile = getContentFile("lib/version.txt");
133133
if (versionFile.exists()) {
134134
String version = PApplet.loadStrings(versionFile)[0];
135-
if (!version.equals(VERSION_NAME)) {
135+
if (!version.equals(VERSION_NAME) && !version.equals("${version}")) {
136136
VERSION_NAME = version;
137137
RELEASE = true;
138138
}
@@ -141,6 +141,10 @@ static public void main(String args[]) throws Exception {
141141
e.printStackTrace();
142142
}
143143

144+
// help 3rd party installers find the correct hardware path
145+
Preferences.set("last.ide." + VERSION_NAME + ".hardwarepath", getHardwarePath());
146+
Preferences.set("last.ide." + VERSION_NAME + ".daterun", "" + (new Date()).getTime() / 1000);
147+
144148
// if (System.getProperty("mrj.version") != null) {
145149
// //String jv = System.getProperty("java.version");
146150
// String ov = System.getProperty("os.version");

build/build.xml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
<condition property="platform"
2121
value="linux64"><os family="unix" arch="amd64" /></condition>
2222

23+
<condition property="arch-bits" value="32">
24+
<equals arg1="${platform}" arg2="linux32"/>
25+
</condition>
26+
<condition property="arch-bits" value="64">
27+
<equals arg1="${platform}" arg2="linux64"/>
28+
</condition>
29+
2330
<!-- Libraries required for running arduino -->
2431
<fileset dir=".." id="runtime.jars">
2532
<include name="core/core.jar" />
@@ -463,13 +470,15 @@
463470
<copy todir="linux/work" file="linux/dist/arduino" />
464471
<chmod perm="755" file="linux/work/arduino" />
465472

466-
<copy todir="linux/work/hardware">
467-
<fileset dir="linux/dist" includes="tools/**" />
468-
</copy>
473+
<mkdir dir="linux/work/hardware/tools" />
474+
<copy file="linux/dist/tools/adk2install" todir="linux/work/hardware/tools" />
475+
<copy file="linux/dist/tools/adk2tool" todir="linux/work/hardware/tools" />
476+
<copy file="linux/dist/tools/avrdude${arch-bits}" tofile="linux/work/hardware/tools/avrdude" />
477+
<copy file="linux/dist/tools/avrdude.conf" todir="linux/work/hardware/tools" />
478+
<copy file="linux/dist/tools/bossac${arch-bits}" tofile="linux/work/hardware/tools/bossac" />
469479

470480
<chmod perm="755" file="linux/work/hardware/tools/avrdude" />
471481
<chmod perm="755" file="linux/work/hardware/tools/bossac" />
472-
<chmod perm="755" file="linux/work/hardware/tools/bossac64" />
473482
<chmod perm="755" file="linux/work/hardware/tools/adk2tool" />
474483
<chmod perm="755" file="linux/work/hardware/tools/adk2install" />
475484

File renamed without changes.
File renamed without changes.

build/linux/dist/tools/bossac64

417 KB
Binary file not shown.

0 commit comments

Comments
 (0)