Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 87debb5

Browse files
committed
check installed gamemod, reset language after build
1 parent 72453e3 commit 87debb5

4 files changed

Lines changed: 13 additions & 2 deletions

File tree

src/src/modules/build.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ export default class Build {
9696

9797
this.fs.glob(staticDir + '/' + this.fs.relativePath(configs, root) + '/*.json').forEach(path => {
9898
if ('prefix.json' === this.fs.basename(path)) {
99+
let config = Utils.jsonDecode(this.fs.fileGetContents(path));
100+
this.fs.rm(path);
101+
delete config.app.language;
102+
this.fs.filePutContents(path, Utils.jsonEncode(config));
99103
return;
100104
}
101105

src/src/modules/diagnostics.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ import Prefix from "./prefix";
77
export default class Diagnostics {
88
dependencies = {
99
apps: [
10+
{
11+
name: 'gamemode',
12+
packages: ['gamemode'],
13+
find: 'gamemoderun',
14+
only64: true,
15+
},
1016
{
1117
name: 'wine',
1218
packages: ['wine'],

src/src/modules/update.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const fs = require('fs');
99

1010
export default class Update {
1111

12-
version = '1.4.13';
12+
version = '1.4.14';
1313

1414
/**
1515
* @type {string}

src/src/views/Diagnostics.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@
9595
<tr>
9696
<td></td>
9797
<td class="p-t-10">
98-
<pre>sudo dpkg --add-architecture i386{{'\n'}}sudo apt-get install {{getPackages(item.packages)}}</pre>
98+
<pre v-if="true !== item.only64">sudo dpkg --add-architecture i386{{'\n'}}sudo apt-get install {{getPackages(item.packages)}}</pre>
99+
<pre v-else>sudo apt-get install {{item.packages.join(' ')}}</pre>
99100
</td>
100101
</tr>
101102

0 commit comments

Comments
 (0)