Skip to content

Commit f96f32e

Browse files
committed
Add deb to makefile
1 parent 4bb7762 commit f96f32e

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

.gitignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
janus
22
*.o
3-
*.AppImage
4-
AppDir
5-
lib
63
*.mo
7-
appimage-build
8-
*.zsync
4+
build

Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ uninstall:
4646
rm /usr/share/applications/janus.desktop
4747
$(foreach object, $(MOBJECTS), rm /usr/share/locale/$(notdir $(basename $(object)))/LC_MESSAGES/janus.mo;)
4848

49-
appimage: DESTDIR += AppDir
49+
appimage: DESTDIR += build/AppDir
5050
appimage: install
51-
appimage-builder --recipe data/AppImageBuilder.yml
51+
cd build; appimage-builder --recipe ../data/AppImageBuilder.yml
52+
53+
deb: DESTDIR += build/janus-notepad_0.9.5-1
54+
deb: install
55+
install -Dm644 data/control $(DESTDIR)/DEBIAN/control
56+
sudo chown root:root -R $(DESTDIR)
57+
dpkg -b $(DESTDIR)
58+
sudo chown $(id -u):$(id -g) -R $(DESTDIR)

data/control

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Package: janus-notepad
2+
Version: 0.9.5-1
3+
Section: base
4+
Priority: optional
5+
Architecture: amd64
6+
Conflicts: janus
7+
Depends: libgtk-3-0, libgtksourceview-4-0
8+
Maintainer: Gabriel Holmann <gholmann@satyrn.net>
9+
Description: Simple linux notepad.

0 commit comments

Comments
 (0)