Browse Source

Empaquetage fonctionnel

develop
William Petit 2 years ago
parent
commit
f6ea0d9cb6
3 changed files with 8 additions and 1 deletions
  1. 3
    0
      Makefile
  2. 1
    1
      debian/control
  3. 4
    0
      debian/marang.postinst

+ 3
- 0
Makefile View File

@@ -13,3 +13,6 @@ install:
13 13
 	cp -r node_modules $(INSTALL_LOCATION)/
14 14
 	cp package.json $(INSTALL_LOCATION)/
15 15
 	cp app.js $(INSTALL_LOCATION)/
16
+	# Create default configuration file
17
+	mkdir -p $(DESTDIR)/etc
18
+	node -e "var defaultConfig = require('./lib/config'); var config = {webApp: defaultConfig.webApp, hookServer: defaultConfig.hookServer}; console.log(JSON.stringify(config, null, 2))" > $(DESTDIR)/etc/marangrc

+ 1
- 1
debian/control View File

@@ -11,4 +11,4 @@ Vcs-Browser: https://forge.cadoles.com/Cadoles/Marang
11 11
 Package: marang
12 12
 Architecture: amd64
13 13
 Description: Serveur de webhook
14
-Depends: nodejs (>= 6.10.0), init-system-helpers (>= 1.22)
14
+Depends: nodejs (>= 6.10.0), init-system-helpers (>= 1.22), build-essential

+ 4
- 0
debian/marang.postinst View File

@@ -0,0 +1,4 @@
1
+#!/usr/bin/env bash
2
+
3
+cd /opt/marang
4
+npm rebuild

Loading…
Cancel
Save