Skip to content

Commit d37d90b

Browse files
committed
release v0.0.22
1 parent 4c5ee7b commit d37d90b

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ source_dir=$(build_dir)/source
77
sign_dir=$(build_dir)/sign
88
package_name=$(app_name)
99
cert_dir=$(CURDIR)/../../key
10-
version+=0.0.21
10+
version+=0.0.22
1111

1212
all: appstore
1313

appinfo/info.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<name>Mind Map</name>
66
<summary>A Mind map editor</summary>
77
<description><![CDATA[This application enables Nextcloud users to open, save and edit mind map files in the web browser. If enabled, an entry in the New button at the top of the web browser the Mindmap file entry appears. When clicked, a new mindmap file opens in the browser and the file can be saved into the current Nextcloud directory.]]></description>
8-
<version>0.0.21</version>
8+
<version>0.0.22</version>
99
<licence>agpl</licence>
1010
<author mail="[email protected]" homepage="https://actom.me">Jingtao Yan</author>
1111
<namespace>Files_MindMap</namespace>

lib/Migration/InstallStep.php

+5-8
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,11 @@ public function getName() {
3434
public function run(IOutput $output) {
3535
$currentVersion = implode('.', \OC_Util::getVersion());
3636

37-
if (version_compare($currentVersion, '19.0.0.6', '<')) {
38-
/* Since 19.0.0.beta5, NC has mindmap's mimetype icon */
39-
$this->logger->info("Copy mindmap icon to core/img directory.", ["app" => "files_mindmap"]);
40-
$appImagePath = __DIR__ . '/../../img/mindmap.svg';
41-
$coreImagePath = \OC::$SERVERROOT . '/core/img/filetypes/mindmap.svg';
42-
if (!file_exists($coreImagePath) || md5_file($coreImagePath) !== md5_file($appImagePath)) {
43-
copy($appImagePath, $coreImagePath);
44-
}
37+
$this->logger->info("Copy mindmap icon to core/img directory.", ["app" => "files_mindmap"]);
38+
$appImagePath = __DIR__ . '/../../img/mindmap.svg';
39+
$coreImagePath = \OC::$SERVERROOT . '/core/img/filetypes/mindmap.svg';
40+
if (!file_exists($coreImagePath) || md5_file($coreImagePath) !== md5_file($appImagePath)) {
41+
copy($appImagePath, $coreImagePath);
4542
}
4643

4744
if (version_compare($currentVersion, '19.0.0.4', '<')) {

0 commit comments

Comments
 (0)