aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/views/DeveloperView.vue
diff options
context:
space:
mode:
authorSalmon <99826409+TH3-S4LM0N@users.noreply.github.com>2022-10-18 08:26:14 -0500
committerGitHub <noreply@github.com>2022-10-18 15:26:14 +0200
commitc4ce52bb45f0dcda8ea924694b48a8e0501d57c0 (patch)
tree6bd3aa2699d59ff7831fdd45df861be886ec0ba0 /src-vue/src/views/DeveloperView.vue
parentc1df0ef8f556eb9d3d8f2f7fcf8f814ae8a56780 (diff)
downloadFlightCore-c4ce52bb45f0dcda8ea924694b48a8e0501d57c0.tar.gz
FlightCore-c4ce52bb45f0dcda8ea924694b48a8e0501d57c0.zip
Add ldd --version check for Linux (#10)
Diffstat (limited to 'src-vue/src/views/DeveloperView.vue')
-rw-r--r--src-vue/src/views/DeveloperView.vue22
1 files changed, 22 insertions, 0 deletions
diff --git a/src-vue/src/views/DeveloperView.vue b/src-vue/src/views/DeveloperView.vue
index f08908a6..92364679 100644
--- a/src-vue/src/views/DeveloperView.vue
+++ b/src-vue/src/views/DeveloperView.vue
@@ -8,6 +8,10 @@
Panic button
</el-button>
+ <el-button type="primary" @click="checkLinuxCompatibility">
+ Check NSProton Compatibility
+ </el-button>
+
<el-button type="primary" @click="toggleReleaseCandidate">
Toggle Release Candidate
</el-button>
@@ -43,6 +47,24 @@ export default defineComponent({
position: 'bottom-right'
});
},
+ async checkLinuxCompatibility() {
+ let LinuxCompatible = await invoke("linux_checks");
+ if (!LinuxCompatible) {
+ ElNotification({
+ title: 'Not linux compatible',
+ message: 'GLIBC is not version 2.33 or greater',
+ type: 'error',
+ position: 'bottom-right'
+ });
+ } else {
+ ElNotification({
+ title: 'Linux compatible',
+ message: 'No error reported',
+ type: 'success',
+ position: 'bottom-right'
+ });
+ }
+ },
async toggleReleaseCandidate() {
// Flip between RELEASE and RELEASE_CANDIDATE
this.$store.state.release_canal = this.$store.state.release_canal === ReleaseCanal.RELEASE