aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlawl <github@dumbinter.net>2020-07-16 09:54:05 +0200
committerlawl <github@dumbinter.net>2020-07-16 09:54:05 +0200
commit9d406a600c483dbf7c6e7043c62f2601c077f256 (patch)
treee85be8ed06cdcbac33f0ce87c783b0b163470746
parent8f90de5f95d56b2be2ca8e6da508cb5074d09606 (diff)
downloadnoisetorch-9d406a600c483dbf7c6e7043c62f2601c077f256.tar.gz
noisetorch-9d406a600c483dbf7c6e7043c62f2601c077f256.zip
Update install method, add icon and desktop file
-rw-r--r--Makefile16
-rw-r--r--README.md16
-rw-r--r--assets/icon/LICENSE5
-rw-r--r--assets/icon/noisetorch.pngbin0 -> 29453 bytes
-rw-r--r--assets/noisetorch.desktop8
5 files changed, 34 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index ebb8351..2725cf7 100644
--- a/Makefile
+++ b/Makefile
@@ -4,12 +4,22 @@ dev: rnnoise
go build -o bin/noisetorch
release: rnnoise
mkdir -p bin/
+ mkdir -p tmp/
+
+ mkdir -p tmp/.local/share/icons/hicolor/256x256/apps/
+ cp assets/icon/noisetorch.png tmp/.local/share/icons/hicolor/256x256/apps/
+
+ mkdir -p tmp/.local/share/applications/
+ cp assets/noisetorch.desktop tmp/.local/share/applications/
+
+ mkdir -p tmp/.local/bin/
go generate
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-s -w -extldflags "-static"' .
upx noisetorch
- tar cvzf NoiseTorch_x64.tgz noisetorch
- rm noisetorch
- mv NoiseTorch_x64.tgz bin/
+ mv noisetorch tmp/.local/bin/
+ cd tmp/; \
+ tar cvzf ../bin/NoiseTorch_x64.tgz .
+ rm -rf tmp/
rnnoise:
cd librnnoise_ladspa/; \
cmake . -DBUILD_VST_PLUGIN=OFF -DBUILD_LV2_PLUGIN=OFF -DBUILD_LADSPA_PLUGIN=ON; \
diff --git a/README.md b/README.md
index d0cb0e8..dcbe0a7 100644
--- a/README.md
+++ b/README.md
@@ -17,20 +17,20 @@ Don't forget to ~~like, comment and subscribe~~ leave a star ⭐ if this sounds
## Download
-NoiseTorch offers the following installation methods:
+[Download the latest release from GitHub](https://github.com/lawl/NoiseTorch/releases).
-#### Snap
+Unpack the `tgz` file, into your home directory.
-Coming soon™.
+ tar -C $HOME -xzf NoiseTorch_x64.tgz
-#### Flatpak
+This will unpack the application, icon and desktop entry to the correct place.
+Depending on your desktop environment you may need to tell it to rescan for applications, or tell it to do a refresh now.
-Coming soon™.
+With gnome this can be done with:
-#### Manual (no automatic updates)
-[Download the latest release from GitHub](https://github.com/lawl/NoiseTorch/releases).
+ gtk-update-icon-cache
-Unpack the `tgz` file, and double click the executable.
+You now have a `noisetorch` binary and desktop entry on your system.
## Usage
diff --git a/assets/icon/LICENSE b/assets/icon/LICENSE
new file mode 100644
index 0000000..6d0e1a9
--- /dev/null
+++ b/assets/icon/LICENSE
@@ -0,0 +1,5 @@
+Artist: Salee Design
+ www.salleedesign.com
+ info@salleedesign.com
+Source: https://iconarchive.com/show/music-icons-by-salleedesign/microphone-foam-green-icon.html
+License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) \ No newline at end of file
diff --git a/assets/icon/noisetorch.png b/assets/icon/noisetorch.png
new file mode 100644
index 0000000..af18254
--- /dev/null
+++ b/assets/icon/noisetorch.png
Binary files differ
diff --git a/assets/noisetorch.desktop b/assets/noisetorch.desktop
new file mode 100644
index 0000000..7285dca
--- /dev/null
+++ b/assets/noisetorch.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=NoiseTorch
+Comment=Create a virtual microphone that suppresses noise, in any application.
+Exec=noisetorch
+Icon=noisetorch.png
+Terminal=false
+Type=Application
+Categories=Audio;AudioVideo;Utility;