summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-06-20 01:39:33 +0200
committerpml68 <contact@pml68.dev>2025-06-20 01:39:38 +0200
commit0ade9914530f5cab82c62582d1ab535298d8f7c9 (patch)
tree64e43afeb6e6605bca659353f3369f75b01c9591
parentci: separate `Lint` and `Test` workflows (diff)
downloadiced-builder-0ade9914530f5cab82c62582d1ab535298d8f7c9.tar.gz
feat(PKGBUILD): add `check` for tests [skip ci]
-rw-r--r--PKGBUILD17
-rw-r--r--fonts/icons.toml4
-rw-r--r--fonts/icons.ttfbin6504 -> 5984 bytes
-rw-r--r--src/icon.rs10
-rw-r--r--src/main.rs3
5 files changed, 18 insertions, 16 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ecddb41..d98445f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: pml68 <contact@pml68.dev>
pkgname=iced-builder
-pkgver=0.1.0.r115.g77b2e89
+pkgver=0.1.0.r174.g7398f64
pkgrel=1
pkgdesc='UI builder for iced, built with iced.'
arch=(x86_64)
@@ -10,6 +10,7 @@ license=('GPL-3.0-or-later')
depends=(
gcc-libs
glibc
+ openssl
rustfmt
)
makedepends=(
@@ -32,9 +33,9 @@ prepare() {
pkgver() {
cd "${pkgname}"
printf "%s.r%s.g%s" \
- $(cargo pkgid | cut -d@ -f2) \
- $(git rev-list --count HEAD) \
- $(git rev-parse --short HEAD)
+ "$(cargo pkgid | cut -d@ -f2)" \
+ "$(git rev-list --count HEAD)" \
+ "$(git rev-parse --short HEAD)"
}
build() {
@@ -45,6 +46,14 @@ build() {
cargo build --frozen --release
}
+check() {
+ cd "${pkgname}"
+
+ export RUSTUP_TOOLCHAIN=stable
+ export CARGO_TARGET_DIR=target
+ cargo test --frozen --release
+}
+
package() {
cd "${pkgname}"
diff --git a/fonts/icons.toml b/fonts/icons.toml
index 3092001..47e5663 100644
--- a/fonts/icons.toml
+++ b/fonts/icons.toml
@@ -1,7 +1,7 @@
module = "icon"
[glyphs]
-save = "entypo-floppy"
-open = "fontawesome-folder-open-empty"
+# save = "entypo-floppy"
+# open = "fontawesome-folder-open-empty"
copy = "fontawesome-file-code"
switch = "entypo-switch"
diff --git a/fonts/icons.ttf b/fonts/icons.ttf
index c00d944..dbdd2bb 100644
--- a/fonts/icons.ttf
+++ b/fonts/icons.ttf
Binary files differ
diff --git a/src/icon.rs b/src/icon.rs
index d218943..32aa92b 100644
--- a/src/icon.rs
+++ b/src/icon.rs
@@ -1,6 +1,6 @@
// Generated automatically by iced_fontello at build time.
// Do not edit manually. Source: ../fonts/icons.toml
-// 915ea6b0646871c0f04350f201f27f28881b61f3bd6ef292a415d67a211739c1
+// 0a164ed48e8a0ef9ffb68cfe442a0cabc6c251beb644b51d01da8e5b7fdbd34e
use iced::Font;
use iced::widget::text;
@@ -12,14 +12,6 @@ pub fn copy<'a>() -> Text<'a> {
icon("\u{F1C9}")
}
-pub fn open<'a>() -> Text<'a> {
- icon("\u{F115}")
-}
-
-pub fn save<'a>() -> Text<'a> {
- icon("\u{1F4BE}")
-}
-
pub fn switch<'a>() -> Text<'a> {
icon("\u{21C6}")
}
diff --git a/src/main.rs b/src/main.rs
index f9352fc..49b2d60 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,9 +1,10 @@
+#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
+
mod appearance;
mod config;
mod dialog;
mod environment;
mod error;
-#[allow(dead_code)]
mod icon;
mod options;
mod panes;