Lanceur d’application pour GNU/Linux
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 546B

1234567891011121314151617181920212223
  1. DESTDIR=./
  2. INSTALL_LOCATION=$(DESTDIR)/opt/pitaya
  3. ELECTRON_ARCH=x64
  4. ifeq ($(DEB_TARGET_ARCH), i386)
  5. ELECTRON_ARCH=ia32
  6. endif
  7. all: build
  8. build:
  9. apt-get update
  10. apt-get install --yes --no-install-recommends curl ca-certificates
  11. curl --silent --location https://deb.nodesource.com/setup_0.12 | bash -
  12. apt-get install --yes nodejs
  13. npm install --ignore-scripts
  14. npm run clean
  15. npm run compile
  16. npm run package -- --arch=$(ELECTRON_ARCH)
  17. install:
  18. mkdir -p $(INSTALL_LOCATION)
  19. cp -r build/pitaya-linux-$(ELECTRON_ARCH)/* $(INSTALL_LOCATION)/