Skip to content

Commit

Permalink
v0.6.0
Browse files Browse the repository at this point in the history
- Добавлена поддержка модов.
- Увеличено окно с прогрессбаром.
- Добавлена настройка отключения поддержки модов.
- Убрано отставание файлов (когда происходило какое-либо изменение вне программы).
  • Loading branch information
VerZsuT committed May 14, 2021
1 parent 52d9516 commit d09e8eb
Show file tree
Hide file tree
Showing 29 changed files with 433 additions and 131 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,6 @@ out/
src/backups/

.vscode/
src/scripts/temp/
src/scripts/mainTemp/
src/scripts/modsTemp/
update/
20 changes: 17 additions & 3 deletions docs/download.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,21 @@ <h1 class="h1 red-text">SnowRunner XML Editor Desktop</h1>
</header>

<div class="release">
<h2 class="title">v0.5.8 (рекомендуется)</h2>
<h2 class="title">v0.6.0 (новейший)</h2>
<h3 class="subtitle">Модификации</h3>
<div class="description">
<ul>
<li>Добавлена поддержка модов.</li>
<li>Увеличено окно с прогрессбаром.</li>
<li>Добавлена настройка отключения поддержки модов.</li>
<li>Убрано отставание файлов (когда происходило какое-либо изменение вне программы).</li>
</ul>
</div>
<button class="download btn btn-primary" version="v0.5.8">Скачать</button>
</div>

<div class="release">
<h2 class="title">v0.5.8 (стабильный)</h2>
<div class="description">
<ul>
<li>Немного увеличен размер окон.</li>
Expand All @@ -41,7 +55,7 @@ <h2 class="title">v0.5.7</h2>
<button class="download btn btn-primary" version="v0.5.7">Скачать</button>
</div>

<div class="release">
<!-- <div class="release">
<h2 class="title">v0.5.6с</h2>
<h3 class="subtitle">Настройки</h3>
<div class="description">
Expand Down Expand Up @@ -71,7 +85,7 @@ <h3 class="subtitle">Настройки</h3>
</ul>
</div>
<button class="download btn btn-primary" version="v0.5.6">Скачать</button>
</div>
</div> -->

<!-- <div class="release">
<h2 class="title">v0.5.5</h2>
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"snowrunner-xml-editor-desktop","productName":"SnowRunner XML Editor","version":"0.5.8","description":"Allows you to visually edit the game's XML files.","repository":{"type":"git","url":"https://github.com/VerZsuT/SnowRunner-XML-Editor-Desktop.git"},"main":"src/app/index.js","scripts":{"start":"electron-forge start","build":"node preBuild.js && npm run package && node postBuild.js","package":"electron-forge package --platform=win32 --arch=ia32"},"keywords":[],"author":{"name":"VerZsuT","email":"verzsut@gmail.com"},"license":"MIT","config":{"forge":{"packagerConfig":{"ignore":["node_modules","docs","postBuild.js","preBuild.js",".gitignore"],"icon":"./src/icons/favicon.ico"}}},"devDependencies":{"@electron-forge/cli":"^6.0.0-beta.54","electron":"^12.0.2"},"dependencies":{}}
{"name":"snowrunner-xml-editor-desktop","productName":"SnowRunner XML Editor","version":"0.6.0","description":"Allows you to visually edit the game's XML files.","repository":{"type":"git","url":"https://github.com/VerZsuT/SnowRunner-XML-Editor-Desktop.git"},"main":"src/app/index.js","scripts":{"start":"electron-forge start","build":"node preBuild.js && npm run package && node postBuild.js","package":"electron-forge package --platform=win32 --arch=ia32"},"keywords":[],"author":{"name":"VerZsuT","email":"verzsut@gmail.com"},"license":"MIT","config":{"forge":{"packagerConfig":{"ignore":["node_modules","docs","postBuild.js","preBuild.js",".gitignore"],"icon":"./src/icons/favicon.ico"}}},"devDependencies":{"@electron-forge/cli":"^6.0.0-beta.54","electron":"^12.0.2"},"dependencies":{}}
8 changes: 5 additions & 3 deletions postBuild.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { execSync } = require('child_process')
const { createHash } = require('crypto')
const { renameSync, readdirSync, statSync, readFileSync, writeFileSync, rmdirSync, existsSync, mkdirSync } = require('fs')
const { renameSync, readdirSync, statSync, readFileSync, writeFileSync, rmdirSync, existsSync } = require('fs')
const { join } = require('path')

const paths = {
Expand All @@ -20,7 +20,9 @@ console.log('[POST_BUILD][STAGE_1]: Success.')
console.log('[POST_BUILD][LOG]................')

const config = JSON.parse(readFileSync(paths.config))
config.lang = 'EN'
config.buildType = 'prod'
config.settings.hideResetButton = true
writeFileSync(paths.config, JSON.stringify(config))

console.log('[POST_BUILD][STAGE_2]: Archiving build...')
Expand Down Expand Up @@ -55,8 +57,8 @@ function generateMap(rootPath) {
map = Object.assign(map, generateMap(path))
} else {
const shaHash = createHash('sha1')
shaHash.update(readFileSync(path).toString())
map[path.replace(join(paths.renamed, 'resources', 'app', '/'), '')] = shaHash.digest('hex').toString()
shaHash.update(readFileSync(path))
map[path.replace(join(paths.renamed, 'resources', 'app', '/'), '')] = shaHash.digest('hex')
}
}
return map
Expand Down
13 changes: 10 additions & 3 deletions src/app/config.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
{
"version": "0.5.8",
"version": "0.6.0",
"lang": "EN",
"buildType": "dev",
"paths": {
"initial": null,
"dlc": null,
"classes": null,
"game": null
"game": null,
"mods": null
},
"settings": {
"ignoreUpdates": false,
"showWinRARWindow": false,
"disableLimits": false,
"disableDLC": false,
"disableMods": false,
"disableEditorLabel": false,
"hideResetButton": true,
"hideResetButton": false,
"devMode": false
},
"sums": {
"initial": null,
"mods": {}
},
"modsList": {},
"dlcList": []
}
Loading

0 comments on commit d09e8eb

Please sign in to comment.