Skip to content

Commit

Permalink
removed invalid chars from version for synology packet
Browse files Browse the repository at this point in the history
  • Loading branch information
mdzio committed Jun 21, 2021
1 parent b0c434a commit ffed529
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ccu-historian/build.properties
@@ -1,2 +1,2 @@
# version of this build
version=2.7.0-beta.4
version=2.7.0-beta.2
2 changes: 1 addition & 1 deletion ccu-historian/src/mdz/ccuhistorian/Main.groovy
Expand Up @@ -24,7 +24,7 @@ import mdz.hc.persistence.Storage

class Main {

public static String version='2.7.0-beta.4'
public static String version='2.7.0-beta.2'

private static final Logger log=Logger.getLogger(Main.class.name)
private static Main main
Expand Down
13 changes: 12 additions & 1 deletion dist-synology/build.xml
Expand Up @@ -2,14 +2,25 @@
<project name="dist-synology" default="build">
<!-- setup properties -->
<property file="../ccu-historian/build.properties" />
<property name="destfile" value="build/ccu-historian-${version}.spk" />
<property name="tmpdir" value="build/tmp" />
<condition property="betaflag" value="yes" else="no">
<or>
<contains string="${version}" substring="alpha" />
<contains string="${version}" substring="beta" />
</or>
</condition>
<!-- clean up version for DSM -->
<loadresource property="cleanVersion">
<propertyresource name="version" />
<filterchain>
<tokenfilter>
<filetokenizer />
<replacestring from="alpha." to="" />
<replacestring from="beta." to="" />
</tokenfilter>
</filterchain>
</loadresource>
<property name="destfile" value="build/ccu-historian-${cleanVersion}.spk" />

<target name="build">
<mkdir dir="${tmpdir}" />
Expand Down
2 changes: 1 addition & 1 deletion dist-synology/src/root/INFO
@@ -1,7 +1,7 @@
package="ccu-historian"
displayname="CCU-Historian"
displayname_ger="CCU-Historian"
version="${version}"
version="${cleanVersion}"
description="CCU-Historian provides a long term archive for the central component (CCU) of the home automation system Homematic by the company eQ-3."
description_ger="CCU-Historian stellt ein Langzeitarchiv für die Zentrale (CCU) des Hausautomations-Systems HomeMatic der Firma eQ-3 zur Verfügung."
arch="noarch"
Expand Down

0 comments on commit ffed529

Please sign in to comment.