mirror of
https://github.com/jwinterm/grim.git
synced 2026-10-28 17:28:32 +01:00
build: remove built dependency
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
// Copyright 2023 The Grim Developers
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
fn main() {
|
||||
built::write_built_file().expect("Failed to acquire build-time information");
|
||||
}
|
||||
+2
-2
@@ -18,7 +18,7 @@ use egui::{Align, Context, CursorIcon, Layout, Modifiers, Rect, ResizeDirection,
|
||||
use egui::epaint::{RectShape};
|
||||
use egui::os::OperatingSystem;
|
||||
|
||||
use crate::{AppConfig, built_info};
|
||||
use crate::AppConfig;
|
||||
use crate::gui::Colors;
|
||||
use crate::gui::icons::{ARROWS_IN, ARROWS_OUT, CARET_DOWN, MOON, SUN, X};
|
||||
use crate::gui::platform::PlatformCallbacks;
|
||||
@@ -257,7 +257,7 @@ impl<Platform: PlatformCallbacks> App<Platform> {
|
||||
let title_text = if hide_app_name {
|
||||
"ツ".to_string()
|
||||
} else {
|
||||
format!("Grim {}", built_info::PKG_VERSION)
|
||||
format!("Grim {}", crate::VERSION)
|
||||
};
|
||||
painter.text(
|
||||
title_rect.center(),
|
||||
|
||||
@@ -23,7 +23,7 @@ use egui::epaint::text::TextWrapping;
|
||||
use egui::os::OperatingSystem;
|
||||
use egui::text::{LayoutJob, TextFormat};
|
||||
use egui::text_edit::TextEditState;
|
||||
use crate::{AppConfig, built_info};
|
||||
use crate::AppConfig;
|
||||
|
||||
use crate::gui::Colors;
|
||||
use crate::gui::icons::{CHECK_SQUARE, CLIPBOARD_TEXT, COPY, EYE, EYE_SLASH, SCAN, SQUARE};
|
||||
@@ -655,7 +655,7 @@ impl View {
|
||||
.color(Colors::white_or_black(true))
|
||||
);
|
||||
ui.add_space(-2.0);
|
||||
ui.label(RichText::new(built_info::PKG_VERSION)
|
||||
ui.label(RichText::new(crate::VERSION)
|
||||
.size(16.0)
|
||||
.color(Colors::title(false))
|
||||
);
|
||||
|
||||
+1
-4
@@ -37,10 +37,7 @@ mod tor;
|
||||
mod settings;
|
||||
pub mod gui;
|
||||
|
||||
// Include build information.
|
||||
pub mod built_info {
|
||||
include!(concat!(env!("OUT_DIR"), "/built.rs"));
|
||||
}
|
||||
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||
|
||||
/// Android platform entry point.
|
||||
#[allow(dead_code)]
|
||||
|
||||
Reference in New Issue
Block a user