Skip to content

Commit

Permalink
remove migrations, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsage committed May 17, 2024
1 parent 2d1b157 commit b9d2ad8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions lib/modAssist_func_lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ const general = {
serveIPC.storeCacheDetail.clear()
}

serveIPC.storeSet.set('wins.mini.h', 50)
serveIPC.storeSet.set('cache_version', app.getVersion())

// Expire old details (1 week)
Expand Down
5 changes: 0 additions & 5 deletions lib/modAssist_window_lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -1054,11 +1054,6 @@ class loadingWindow {
module.exports.defaultSettings = class {
constructor() {}

get migrateConfig () { return {
'<=4.1.0' : (store) => {
store.set('wins.mini.h', 50)
},
}}
get migrateSite () { return {
'<=2.1.1' : (store) => {
store.set('FS22_UniversalAutoload', 'https://github.com/loki79uk/FS22_UniversalAutoload/')
Expand Down
2 changes: 1 addition & 1 deletion modAssist_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const settingDefault = new (require('./lib/modAssist_window_lib.js')).defaultSet

serveIPC.isFirstRun = !fs.existsSync(path.join(app.getPath('userData'), 'config.json'))

serveIPC.storeSet = new Store({schema : settingDefault.defaults, migrations : settingDefault.migrateConfig, clearInvalidConfig : true })
serveIPC.storeSet = new Store({schema : settingDefault.defaults, clearInvalidConfig : true })
serveIPC.storeCache = new (require('./lib/modUtilLib.js')).modCacheManager(app.getPath('userData'))
serveIPC.storeSites = new Store({name : 'mod_source_site', migrations : settingDefault.migrateSite, clearInvalidConfig : true})
serveIPC.storeNote = new Store({name : 'col_notes', clearInvalidConfig : true})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fsg-mod-assistant",
"version": "4.0.2",
"version": "4.0.3",
"description": "FSG Farm Sim Mod Assistant",
"main": "modAssist_main.js",
"homepage": "https://github.com/FSGModding/FSG_Mod_Assistant#readme",
Expand Down

0 comments on commit b9d2ad8

Please sign in to comment.