Browse Source

Update to 1.3.8

Lutz Roeder 8 years ago
parent
commit
52224d0d8d
3 changed files with 53 additions and 89 deletions
  1. 0 1
      Makefile
  2. 52 0
      electron-builder.yml
  3. 1 88
      package.json

+ 0 - 1
Makefile

@@ -28,7 +28,6 @@ publish_pip:
 
 publish_github:
 	npx electron-builder install-app-deps
-	@export GH_TOKEN=$(GITHUB_TOKEN); \
 	npx electron-builder --mac --linux --win --publish always --draft false --prerelease false
 
 publish_cask:

+ 52 - 0
electron-builder.yml

@@ -0,0 +1,52 @@
+appId: com.lutzroeder.netron
+productName: Netron
+files:
+  - 'src/**/*'
+directories:
+  buildResources: setup
+fileAssociations:
+  - name: "ONNX Model"
+    ext: 
+    - onnx
+    - pb
+  - name: "TensorFlow Saved Model"
+    ext:
+    - saved_model.pb
+  - name: "TensorFlow Graph"
+    ext:
+    - pb
+    - meta
+  - name: "TensorFlow Lite Model"
+    ext: 
+    - tflite
+  - name: "Keras Model"
+    ext:
+    - keras
+    - h5
+    - json
+publish:
+  - provider: github
+    releaseType: release
+mac:
+  category: public.app-category.developer-tools
+  target: 
+  - dmg
+  - zip
+linux:
+  target:
+  - AppImage
+  - deb
+win:
+  target:
+  - nsis
+dmg:
+  iconSize: 160
+  contents:
+  - x: 180
+    y: 170
+  - x: 480
+    y: 170
+    type: link
+    path: /Applications
+nsis:
+  perMachine: true

+ 1 - 88
package.json

@@ -5,7 +5,7 @@
         "email": "[email protected]",
         "url": "lutzroeder.com"
     },
-    "version": "1.3.7",
+    "version": "1.3.8",
     "description": "Viewer neural network models",
     "license": "MIT",
     "repository": "lutzroeder/Netron",
@@ -23,92 +23,5 @@
     "devDependencies": {
         "electron": "latest",
         "electron-builder": "latest"
-    },
-    "build": {
-        "publish": [
-            {
-                "provider": "github",
-                "releaseType": "release"
-            }
-        ],
-        "files": [
-            "src/**/*"
-        ],
-        "appId": "com.lutzroeder.netron",
-        "directories": {
-            "buildResources": "setup"
-        },
-        "fileAssociations": [
-            {
-                "ext": [
-                    "onnx",
-                    "pb"
-                ],
-                "name": "ONNX Model"
-            },
-            {
-                "ext": [
-                    "saved_model.pb"
-                ],
-                "name": "TensorFlow Saved Model"
-            },
-            {
-                "ext": [
-                    "pb",
-                    "meta"
-                ],
-                "name": "TensorFlow Graph"
-            },
-            {
-                "ext": [
-                    "tflite"
-                ],
-                "name": "TensorFlow Lite Model"
-            },
-            {
-                "ext": [
-                    "keras",
-                    "h5",
-                    "json"
-                ],
-                "name": "Keras Model"
-            }
-        ],
-        "mac": {
-            "category": "public.app-category.developer-tools",
-            "target": [
-                "dmg",
-                "zip"
-            ]
-        },
-        "dmg": {
-            "iconSize": 160,
-            "contents": [
-                {
-                    "x": 180,
-                    "y": 170
-                },
-                {
-                    "x": 480,
-                    "y": 170,
-                    "type": "link",
-                    "path": "/Applications"
-                }
-            ]
-        },
-        "linux": {
-            "target": [
-                "AppImage",
-                "deb"
-            ]
-        },
-        "win": {
-            "target": [
-                "nsis"
-            ]
-        },
-        "nsis": {
-            "perMachine": true
-        }
     }
 }