Skip to content

Commit 2db3e23

Browse files
committed
Fixed mismatched version between the mod directory and the generated info.json file.
1 parent c56eb70 commit 2db3e23

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 2.0.3 - 2020-04-24
4+
5+
### Fixed
6+
7+
- Mismatched version between the mod directory and its generated info.json file.
8+
39
## 2.0.2 - 2020-04-24
410

511
### Fixed

config/autoload/base.global.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
ConfigAggregator::ENABLE_CACHE => true,
1818
'debug' => false,
1919
'name' => 'Factorio Item Browser - Export',
20-
'version' => '2.0.2'
20+
'version' => '2.0.3'
2121
];

src/Factorio/Instance.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,14 +163,15 @@ protected function setUpMods(array $modNames): void
163163
*/
164164
protected function setupDumpMod(array $modNames): void
165165
{
166+
$modDirectory = sprintf('mods/Dump_%s', $this->version);
166167
exec(sprintf(
167168
'cp -r "%s" "%s"',
168169
__DIR__ . '/../../lua/dump',
169-
$this->getInstancePath('mods/Dump_1.0.0')
170+
$this->getInstancePath($modDirectory)
170171
));
171172

172173
file_put_contents(
173-
$this->getInstancePath('mods/Dump_1.0.0/info.json'),
174+
$this->getInstancePath(sprintf('%s/info.json', $modDirectory)),
174175
$this->serializer->serialize($this->createDumpInfoJson($modNames), 'json')
175176
);
176177
}

0 commit comments

Comments
 (0)