Lutz Roeder преди 6 години
родител
ревизия
d7ea5bf599
променени са 3 файла, в които са добавени 8 реда и са изтрити 2 реда
  1. 4 1
      Makefile
  2. 3 0
      electron-builder.yml
  3. 1 1
      package.json

+ 4 - 1
Makefile

@@ -3,7 +3,7 @@
 
 build: clean lint build_python build_electron
 
-publish: clean lint publish_github_electron publish_python publish_github_pages publish_cask
+publish: clean lint publish_github_electron publish_python publish_github_pages publish_snap publish_cask
 
 install:
 	rm -rf ./node_modules
@@ -87,6 +87,9 @@ publish_github_pages:
 	git -C ./build/gh-pages commit --amend --no-edit
 	git -C ./build/gh-pages push --force origin gh-pages
 
+publish_snap:
+	snapcraft push --release=stable build/*.snap
+
 publish_cask:
 	@curl -H "Authorization: token $(GITHUB_TOKEN)" https://api.github.com/repos/Homebrew/homebrew-cask/forks -d ''
 	@export PACKAGE_VERSION=`node -pe "require('./package.json').version"`; \

+ 3 - 0
electron-builder.yml

@@ -96,6 +96,9 @@ linux:
   target:
   - AppImage
   - deb
+  - snap
+snap:
+  publish: github
 win:
   target:
   - nsis

+ 1 - 1
package.json

@@ -7,7 +7,7 @@
         "url": "https://www.lutzroeder.com"
     },
     "version": "3.4.4",
-    "description": "Viewer neural network models",
+    "description": "Visualizer for neural network, deep learning and machine learning models",
     "license": "MIT",
     "repository": "lutzroeder/netron",
     "main": "src/app.js",