diff --git a/.gitignore b/.gitignore
index 85078d2..53fb7c2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -37,3 +37,6 @@ hs_err_pid*
.settings/
.vscode/
.claude/
+cflash/*
+pkg/*
+
diff --git a/PKGBUILD b/PKGBUILD
index 8aadc5b..4fe8dd5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,12 +4,13 @@ pkgver=1.0.1
pkgrel=1
pkgdesc="A small and lightweight wrapper for dd that strips away the complexity of CLI flashing."
arch=('any')
-url="https://github.com/cametendo/cflash-git"
+url="https://gitea.cametendo.org/cametendo/cflash-emvs"
license=('MIT')
depends=('java-runtime>=21')
makedepends=('java-environment>=21' 'maven' 'git')
-source=("cflash::git+https://github.com/cametendo/cflash-git.git")
+source=("cflash::git+https://gitea.cametendo.org/cametendo/cflash-emvs.git")
sha256sums=('SKIP')
+install=cflash.install
build() {
cd "$pkgname"
diff --git a/cflash-1.0.1-1-any.pkg.tar.zst b/cflash-1.0.1-1-any.pkg.tar.zst
new file mode 100644
index 0000000..5e1a81b
Binary files /dev/null and b/cflash-1.0.1-1-any.pkg.tar.zst differ
diff --git a/cflash.install b/cflash.install
new file mode 100644
index 0000000..892b79a
--- /dev/null
+++ b/cflash.install
@@ -0,0 +1,9 @@
+pre_install() {
+ echo "Cleaning up legacy /usr/local files..."
+ rm -f /usr/local/bin/cflash
+ rm -rf /usr/local/lib/cflash
+}
+
+pre_upgrade() {
+ pre_install
+}
\ No newline at end of file
diff --git a/install.sh b/install.sh
index 9282cd6..3356f0a 100755
--- a/install.sh
+++ b/install.sh
@@ -9,7 +9,10 @@ fi
# Create installation directories
mkdir -p /usr/local/lib/cflash
-cp cflash.jar /usr/local/lib/cflash/
+echo "clean building cflash..."
+mvn clean package
+mv target/cflash-*-jar-with-dependencies.jar target/cflash.jar
+cp target/cflash.jar /usr/local/lib/cflash/
cp cflash.sh /usr/local/bin/cflash
chmod +x /usr/local/bin/cflash
diff --git a/pom.xml b/pom.xml
index b62efe4..247eef3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
org.cametendo
cflash
- 1.0.1
+ 1.0.2
21
diff --git a/releases/cflash-1.0.0/release-notes.txt b/releases/cflash-1.0.0/release-notes.txt
new file mode 100644
index 0000000..47dca4a
--- /dev/null
+++ b/releases/cflash-1.0.0/release-notes.txt
@@ -0,0 +1,15 @@
+cflash is finally ready for distribution!! Here's what it can do:
+
+TUI:
+ 1. It will ask you to enter a device, f.e. sdd (no need for /dev/)
+ 2. It will ask you to enter the FULL path of your ISO or image file (Tab-completion supported)
+ 3. It will ask you to enter your preferred blocksize (Supported are: 512K (1), 1M (2), 2M (3), 4M (4), 8M (5) and 16M (6), can be entered as a digit
+ 4. It will ask you to enter your preferred oflag (Supported are: direct (1), dsync (2), sync (3) and nocache (4), can also be entered as a digit)
+ 5. Once completed, it will list your configuration for the flash (device, iso, blocksize and oflag) and ask, if that's all correct and you want to continue. If yes, it will continue and prompt you with a sudo (unless you started the program with sudo) and then start to flash.
+ 6. After the flash is completed, you will get a message telling you it's done and to have fun with your new installation (depending on the OS).
+
+CLI:
+ 1. Enter all details for flashing (device (without /dev/), iso, blocksize and oflag), then press enter
+ 2. You will be asked if the entered details are correct, confirm if they are all correct.
+ 3. A sudo prompt (unless started with sudo) will appear, after confirming you have sudo-rights, the flash will start.
+ 4. Once the flash is completed, you will get a message telling you it's done and to have fun with your new installation (depending on the OS).
\ No newline at end of file
diff --git a/releases/cflash-1.0.1/release-notes.txt b/releases/cflash-1.0.1/release-notes.txt
new file mode 100644
index 0000000..3d3b4b6
--- /dev/null
+++ b/releases/cflash-1.0.1/release-notes.txt
@@ -0,0 +1,4 @@
+Changes made:
+- Added path validation for "~".
+- Added flashing available to nly non-mounted partitions
+- now using 'lsblk -no' instead of normal 'lsblk'. for simplicity.
\ No newline at end of file
diff --git a/src/main/java/org/cametendo/GetHome.java b/src/main/java/org/cametendo/GetHome.java
deleted file mode 100644
index 09c0ba9..0000000
--- a/src/main/java/org/cametendo/GetHome.java
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/src/main/java/org/cametendo/StorageDeviceLister.java b/src/main/java/org/cametendo/StorageDeviceLister.java
index b3b94d7..e3a9dd5 100644
--- a/src/main/java/org/cametendo/StorageDeviceLister.java
+++ b/src/main/java/org/cametendo/StorageDeviceLister.java
@@ -99,7 +99,7 @@ public class StorageDeviceLister {
System.out.println("Enter the name of your device (e.g., sdb or nvme1n1):");
} catch (IOException | InterruptedException e) {
- System.out.println("Failed to run lsblk. Do you have it installed.");
+ System.out.println("Failed to run lsblk. Do you have it installed?");
}
}
diff --git a/uninstall.sh b/uninstall.sh
index dbc13fc..6b6ad2f 100755
--- a/uninstall.sh
+++ b/uninstall.sh
@@ -6,6 +6,7 @@ if [[ $EUID -ne 0 ]]; then
exit 1
fi
+echo "Uninstalling cflash..."
rm -f /usr/local/bin/cflash
rm -rf /usr/local/lib/cflash