disable xe 5.x builds

This commit is contained in:
daleclack 2023-04-09 22:33:01 +08:00
parent bc155c1ec3
commit 07d773224e
5 changed files with 33 additions and 12 deletions

View File

@ -80,5 +80,6 @@
"typeinfo": "cpp",
"valarray": "cpp",
"variant": "cpp"
}
},
"mesonbuild.configureOnOpen": false
}

View File

@ -3,7 +3,7 @@
#include <gtkmm.h>
#include <fstream>
#include "../json_nlohmann/json.hpp"
#include "os_detector.hh"
#include "config.hh"
using json = nlohmann::json;

View File

@ -4,6 +4,7 @@
#include "fly.xpm"
#include "xeapi.hh"
#include "xerelease.hh"
#include "config.hh"
#include <cstdio>
enum Releases
@ -122,9 +123,9 @@ MyWin::MyWin()
}
// Apply css class for widgets
Gtk::CssProvider::add_provider_for_display(btn_box.get_display(), provider,
Gtk::CssProvider::add_provider_for_display(btn_box.get_display(), provider,
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
Gtk::CssProvider::add_provider_for_display(prefs->get_display(), provider,
Gtk::CssProvider::add_provider_for_display(prefs->get_display(), provider,
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
// auto style1 = btn_box.get_style_context();
// style1->add_provider(provider, 1);
@ -190,10 +191,13 @@ void MyWin::background1()
sized.reset();
// Update config
if(!start){
if (!start)
{
prefs->background_id = 1;
prefs->save_config_now();
}else{
}
else
{
start = false;
}
}
@ -211,10 +215,13 @@ void MyWin::background2()
sized.reset();
// Update config
if(!start){
if (!start)
{
prefs->background_id = 2;
prefs->save_config_now();
}else{
}
else
{
start = false;
}
}
@ -232,10 +239,13 @@ void MyWin::background3()
sized.reset();
// Update config
if(!start){
if (!start)
{
prefs->background_id = 3;
prefs->save_config_now();
}else{
}
else
{
start = false;
}
}
@ -291,9 +301,14 @@ void MyWin::main_releases()
switch (version) // Use Selection to Perform
{
case Releases::LTS:
#ifdef DISABLE_LONGTERM_BUILD
msg_dialog.Init("The longterm build is diasbled!");
msg_dialog.show();
#else
longterm(local, config_longterm.c_str(), str);
msg_dialog.Init(str);
msg_dialog.show();
#endif
break;
case Releases::Stable:
stable(local, config_stable.c_str(), str);

View File

@ -1,4 +1,6 @@
// This header file is to get the platform and features enable/disable
#pragma once
// Defining the OS
enum class OS_Type{
Linux,
@ -17,4 +19,7 @@ static inline OS_Type get_os_type(){
// #define COMPILED_IN_WINDOWS
return OS_Type::Windows;
#endif
}
}
// Disable longterm build
#define DISABLE_LONGTERM_BUILD

View File

@ -2,7 +2,7 @@
#define __XE_RELEASE_
#include "../json_nlohmann/json.hpp"
#include "os_detector.hh"
#include "config.hh"
using json = nlohmann::json;