Skip to content

Commit

Permalink
Release Hardella 1.6.1
Browse files Browse the repository at this point in the history
- Arguments are no longer red when replacing one FB call with another (e.g. TON(...) -> TOF(...))
- Implemented automatic updates, so updates will be small and fast
  • Loading branch information
vlsi committed Dec 25, 2016
1 parent 4ce20a9 commit 3d26004
Show file tree
Hide file tree
Showing 14 changed files with 984 additions and 660 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ source_gen
source_gen.caches

.DS_Store

build.xml.*
13 changes: 13 additions & 0 deletions .mps/codeStyleSettings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CodeStyleSettings">
<option name="fieldPrefix" value="" />
<option name="fieldSuffix" value="" />
<option name="localVariablePrefix" value="" />
<option name="localVariableSuffix" value="" />
<option name="parameterPrefix" value="" />
<option name="parameterSuffix" value="" />
<option name="staticFieldPrefix" value="" />
<option name="staticFieldSuffix" value="" />
</component>
</project>
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ Install mbeddr, clone ide61131, hack as required.
Changelog
---------

v1.6.1: 25 December 2016
- Arguments are no longer red when replacing one FB call with another (e.g. TON(...) -> TOF(...))
- Implemented automatic updates, so updates will be small and fast

v1.6.0: 19 December 2016
- Both PRU cores can now be programmed. You can freely control 4 fast outputs and 2 fast inputs
- Standard library is improved. For instance, there's a block for step motor control, a block for ABZ encoder, and several others
Expand Down
113 changes: 0 additions & 113 deletions bin/mac/Contents/Info.plist

This file was deleted.

15 changes: 14 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
#!/bin/sh
rm -rf build/artifacts
rm -rf build/tmp
ant && ant -f buildDistribution.xml

# See https://youtrack.jetbrains.com/issue/MPS-25087
sed '\|dir="[^"]*.iec61131.types" includes="icons/\\*\\*|a\
<zipfileset dir="${basedir}/languages/com.github.vlsi.iec61131.types/icons" includes="*.png" prefix="com/github/vlsi/iec61131/types/structure"/>\
' build.xml > build.xml.1
sed '\|dir="[^"]*.iec61131.st2ti1808" includes="icons/\\*\\*|a\
<zipfileset dir="${basedir}/languages/com.github.vlsi.iec61131.st2ti1808/icons" includes="*.png" prefix="com/github/vlsi/iec61131/st2ti1808/structure"/>\
' build.xml.1 > build.xml.2

# See https://youtrack.jetbrains.com/issue/MPS-25108
sed 's/update="/patches="/' build.xml.2 > build.xml.3

ant -f build.xml.3 && ant -f buildDistribution.xml

#cd build/artifacts/st61131Distribution && unzip *-mac.zip
51 changes: 27 additions & 24 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
<tstamp>
<format property="date" pattern="yyyyMMdd" />
</tstamp>
<property name="build.number" value="162.2065" />
<property name="version" value="1.6.0" />
<property name="codename" value="HD" />
<property name="build.number" value="${codename}-162.2066" />
<property name="version" value="1.6.1" />
<property name="path.selector" value="IDE61131-15" />
<property name="appName" value="Hardella" />
<property name="mps_home" location="${basedir}/../../Documents/work/MPS 3.4.2" />
<property name="mbeddr.github.core.home" location="${basedir}/../../Documents/work/mbeddr.core" />
Expand Down Expand Up @@ -64,39 +66,28 @@
<fileset file="${mps_home}/bin/idea.properties" />
<filterchain>
<tokenfilter>
<replaceregex pattern="\.MPS(\w+)" replace="\.IDE61131-15" flags="g" />
<replaceregex pattern="\.MPS(\w+)" replace="\.${path.selector}" flags="g" />
</tokenfilter>
<tokenfilter>
<replaceregex pattern="# (idea\.\w+\.path)" replace="\1" flags="g" />
</tokenfilter>
</filterchain>
</copy>
<copy todir="${build.layout}">
<fileset file="${basedir}/bin/mac/Contents/Info.plist" />
<filterchain>
<replacetokens>
<token key="CFBundleGetInfoString" value="Hardella IDE ${version}" />
</replacetokens>
<replacetokens>
<token key="CFBundleShortVersionString" value="${version}" />
</replacetokens>
<replacetokens>
<token key="CFBundleVersion" value="Hardella-${version}" />
</replacetokens>
</filterchain>
</copy>
<mkdir dir="${build.layout}/lib" />
<copy todir="${build.layout}/lib">
<fileset dir="${artifacts.mpsWorkbench}/lib">
<exclude name="MPS-src.zip" />
<exclude name="branding.jar" />
</fileset>
</copy>
<jar destfile="${build.layout}/lib/hardella-boot.jar" duplicate="preserve">
<fileset dir="${build.tmp}/java/out/hardellaLauncher" />
</jar>
<mkdir dir="${build.tmp}/default/branding.jar" />
<mkdir dir="${build.tmp}/default/branding.jar/idea" />
<echoxml file="${build.tmp}/default/branding.jar/idea/IdeaApplicationInfo.xml">
<component>
<version codename="" major="1" minor="6.0" eap="false" update-channel="Hardella_release" />
<version codename="${codename}" major="1" minor="6.1" eap="false" update-channel="Hardella_release" />
<company name="Vladimir Sitnikov" url="https://twitter.com/VladimirSitnikv" />
<build number="${build.number}" date="${date}" />
<logo url="/splash.png" textcolor="002387" progressColor="4269bc" progressY="394" progressHeight="3" />
Expand All @@ -109,7 +100,7 @@
<welcome-screen logo-url="/icon_80x80.png" />

<plugins url="" />
<update-urls check="https://hardella.com/updates/updates.xml" update="https://github.com/Hardella/ide61131/releases/download/v1.6.0" />
<update-urls check="https://hardella.com/updates/updates.xml" update="https://github.com/Hardella/ide61131/releases/download/v${version}" />

<documentation url="http://hardella.com/docs/introduction" />
<support url="https://github.com/Hardella/ide61131/issues" />
Expand Down Expand Up @@ -205,7 +196,7 @@
<idea-plugin version="2" xmlns:xi="http://www.w3.org/2001/XInclude">
<id>st61131</id>
<name>IDE 61131</name>
<description>AM1808 PRU programming added</description>
<description>This plugin implements ST 61131 language</description>
<version>${version}</version>
<vendor url="https://hardella.com" logo="/icon_16x16.png">Vladimir Sitnikov</vendor>
<depends>jetbrains.mps.core</depends>
Expand Down Expand Up @@ -256,7 +247,6 @@
<jar destfile="${build.layout}/plugins/st61131/languages/st61131/com.github.vlsi.iec61131.types.jar" duplicate="preserve">
<fileset dir="${build.tmp}/java/out/com.github.vlsi.iec61131.types" />
<fileset dir="${basedir}/languages/com.github.vlsi.iec61131.types" includes="icons/**, resources/**" />
<zipfileset dir="${basedir}/languages/com.github.vlsi.iec61131.types/icons" includes="*.png" prefix="com/github/vlsi/iec61131/types/structure"/>
<fileset dir="${basedir}/languages/com.github.vlsi.iec61131.types/source_gen" includes="**/trace.info, **/exports, **/*.mps, **/checkpoints" />
<fileset dir="${build.tmp}/default/com.github.vlsi.iec61131.types.jar" />
</jar>
Expand Down Expand Up @@ -462,7 +452,6 @@
<jar destfile="${build.layout}/plugins/st61131/languages/st61131/com.github.vlsi.iec61131.st2ti1808.jar" duplicate="preserve">
<fileset dir="${build.tmp}/java/out/com.github.vlsi.iec61131.st2ti1808" />
<fileset dir="${basedir}/languages/com.github.vlsi.iec61131.st2ti1808" includes="icons/**, resources/**" />
<zipfileset dir="${basedir}/languages/com.github.vlsi.iec61131.st2ti1808/icons" includes="*.png" prefix="com/github/vlsi/iec61131/st2ti1808/structure"/>
<fileset dir="${basedir}/languages/com.github.vlsi.iec61131.st2ti1808/source_gen" includes="**/trace.info, **/exports, **/*.mps, **/checkpoints" />
<fileset dir="${build.tmp}/default/com.github.vlsi.iec61131.st2ti1808.jar" />
</jar>
Expand Down Expand Up @@ -1220,7 +1209,7 @@
<fileset file="${basedir}/solutions/com.github.vlsi.iec61131.quickstart.pluginSolution/lib/miglayout-swing-5.0.jar" />
</copy>
<echo file="${build.layout}/build.number">build.number=${build.number}${line.separator}date=${date}${line.separator}version=${version}</echo>
<echo file="${build.layout}/build.properties">st61131.date=${date}${line.separator}st61131.build.number=${build.number}${line.separator}st61131.version=${version}${line.separator}st61131.appName=${appName}${line.separator}mpsBootstrapCore.version=${mpsBootstrapCore.version}${line.separator}mps.build.number=${mps.build.number}${line.separator}mps.date=${mps.date}${line.separator}mps.build.vcs.number=${mps.build.vcs.number}${line.separator}mps.teamcity.buildConfName=${mps.teamcity.buildConfName}${line.separator}mps.idea.platform.build.number=${mps.idea.platform.build.number}${line.separator}mps.mps.build.counter=${mps.mps.build.counter}${line.separator}mps-sl-all.versionNumber=${mps-sl-all.versionNumber}${line.separator}com.mbeddr.platform.major.version=${com.mbeddr.platform.major.version}${line.separator}com.mbeddr.platform.minor.version=${com.mbeddr.platform.minor.version}${line.separator}com.mbeddr.platform.build=${com.mbeddr.platform.build}${line.separator}com.mbeddr.platform.mbeddr.version=${com.mbeddr.platform.mbeddr.version}</echo>
<echo file="${build.layout}/build.properties">st61131.date=${date}${line.separator}st61131.codename=${codename}${line.separator}st61131.build.number=${build.number}${line.separator}st61131.version=${version}${line.separator}st61131.path.selector=${path.selector}${line.separator}st61131.appName=${appName}${line.separator}mpsBootstrapCore.version=${mpsBootstrapCore.version}${line.separator}mps.build.number=${mps.build.number}${line.separator}mps.date=${mps.date}${line.separator}mps.build.vcs.number=${mps.build.vcs.number}${line.separator}mps.teamcity.buildConfName=${mps.teamcity.buildConfName}${line.separator}mps.idea.platform.build.number=${mps.idea.platform.build.number}${line.separator}mps.mps.build.counter=${mps.mps.build.counter}${line.separator}mps-sl-all.versionNumber=${mps-sl-all.versionNumber}${line.separator}com.mbeddr.platform.major.version=${com.mbeddr.platform.major.version}${line.separator}com.mbeddr.platform.minor.version=${com.mbeddr.platform.minor.version}${line.separator}com.mbeddr.platform.build=${com.mbeddr.platform.build}${line.separator}com.mbeddr.platform.mbeddr.version=${com.mbeddr.platform.mbeddr.version}</echo>
</target>

<target name="buildDependents" />
Expand All @@ -1241,7 +1230,7 @@
<delete dir="${build.layout}" />
</target>

<target name="compileJava" depends="java.compile.com.github.vlsi.iec61131.types, java.compile.com.github.vlsi.iec61131.types#5202852658697191353, java.compile.com.github.vlsi.iec61131.parser, java.compile.com.github.vlsi.iec61131.ti1808, java.compile.com.github.vlsi.iec61131.ti1808#124800662050748518, java.compile.com.github.vlsi.iec61131.ti1808.cfc, java.compile.com.github.vlsi.iec61131.ti1808.cfc#8449865404969428826, java.compile.java.modules.cycle.1, java.compile.com.github.vlsi.iec61131.st2ti1808, java.compile.com.github.vlsi.iec61131.st2ti1808#124800662050860764, java.compile.com.github.vlsi.iec61131.st2ti1808.runtime, java.compile.com.github.vlsi.iec61131.ti1808.libcompiler, java.compile.com.github.vlsi.iec61131.ti1808.toemulator, java.compile.com.github.vlsi.iec61131.ti1808.toemulator#1290013542351728604, java.compile.com.github.vlsi.iec61131.st, java.compile.com.github.vlsi.iec61131.st#6039408957479237362, java.compile.com.hardella.st.ext.implicitfb, java.compile.com.github.vlsi.iec61131.st.ext.implicitfb, java.compile.com.github.vlsi.iec61131.st.ext.implicitfb#4082534695945163422, java.compile.com.github.vlsi.iec61131.st.runtime, java.compile.com.github.vlsi.iec61131.plc110pru.executors, java.compile.com.github.vlsi.iec61131.executors, java.compile.com.github.vlsi.iec61131.executors#8776140008686452100, java.compile.com.github.vlsi.iec61131.executors.runtime, java.compile.com.github.vlsi.iec61131.libimport, java.compile.com.github.vlsi.iec61131.standard_lib, java.compile.com.github.vlsi.iec61131.ti1808.stdlib, java.compile.com.github.vlsi.iec61131.quickstart.pluginSolution, java.compile.com.hardella.examples.ti1808, java.compile.com.github.vlsi.iec61131.cfc, java.compile.com.github.vlsi.iec61131.cfc#1954616409527170363" />
<target name="compileJava" depends="java.compile.com.github.vlsi.iec61131.types, java.compile.com.github.vlsi.iec61131.types#5202852658697191353, java.compile.com.github.vlsi.iec61131.parser, java.compile.com.github.vlsi.iec61131.ti1808, java.compile.com.github.vlsi.iec61131.ti1808#124800662050748518, java.compile.com.github.vlsi.iec61131.ti1808.cfc, java.compile.com.github.vlsi.iec61131.ti1808.cfc#8449865404969428826, java.compile.java.modules.cycle.1, java.compile.com.github.vlsi.iec61131.st2ti1808, java.compile.com.github.vlsi.iec61131.st2ti1808#124800662050860764, java.compile.com.github.vlsi.iec61131.st2ti1808.runtime, java.compile.com.github.vlsi.iec61131.ti1808.libcompiler, java.compile.com.github.vlsi.iec61131.ti1808.toemulator, java.compile.com.github.vlsi.iec61131.ti1808.toemulator#1290013542351728604, java.compile.com.github.vlsi.iec61131.st, java.compile.com.github.vlsi.iec61131.st#6039408957479237362, java.compile.com.hardella.st.ext.implicitfb, java.compile.com.github.vlsi.iec61131.st.ext.implicitfb, java.compile.com.github.vlsi.iec61131.st.ext.implicitfb#4082534695945163422, java.compile.com.github.vlsi.iec61131.st.runtime, java.compile.com.github.vlsi.iec61131.plc110pru.executors, java.compile.com.github.vlsi.iec61131.executors, java.compile.com.github.vlsi.iec61131.executors#8776140008686452100, java.compile.com.github.vlsi.iec61131.executors.runtime, java.compile.com.github.vlsi.iec61131.libimport, java.compile.com.github.vlsi.iec61131.standard_lib, java.compile.com.github.vlsi.iec61131.ti1808.stdlib, java.compile.com.github.vlsi.iec61131.quickstart.pluginSolution, java.compile.com.hardella.examples.ti1808, java.compile.com.github.vlsi.iec61131.cfc, java.compile.com.github.vlsi.iec61131.cfc#1954616409527170363, java.compile.hardellaLauncher" />

<target name="processResources" />

Expand Down Expand Up @@ -3009,6 +2998,20 @@
</javac>
</target>

<target name="java.compile.hardellaLauncher" depends="fetchDependencies">
<mkdir dir="${basedir}/startup/src" />
<mkdir dir="${build.tmp}/java/out/hardellaLauncher" />
<javac destdir="${build.tmp}/java/out/hardellaLauncher" fork="true" encoding="utf8" includeantruntime="false" debug="true">
<compilerarg value="-Xlint:none" />
<src>
<path location="${basedir}/startup/src" />
</src>
<classpath>
<fileset file="${artifacts.mpsStandalone}/lib/mps-boot.jar" />
</classpath>
</javac>
</target>

<target name="cleanSources">
<delete dir="${basedir}/languages/com.github.vlsi.iec61131.cfc/source_gen" />
<delete dir="${basedir}/languages/com.github.vlsi.iec61131.executors/source_gen" />
Expand Down
Loading

0 comments on commit 3d26004

Please sign in to comment.