質問するログイン新規登録

質問編集履歴

5

s

2018/08/31 06:42

投稿

dakarann104
dakarann104

スコア21

title CHANGED
File without changes
body CHANGED
@@ -50,5 +50,4 @@
50
50
  /assets/ (アイコンファイル)
51
51
  |-- icon.ico
52
52
  /dist/ (パッケージングされたファイルを出力)
53
-
54
- package.json //これでnpm run pack:win
53
+ /package.json //これでnpm run pack:win

4

変更

2018/08/31 06:42

投稿

dakarann104
dakarann104

スコア21

title CHANGED
File without changes
body CHANGED
@@ -48,8 +48,7 @@
48
48
  |-- node_modules
49
49
  |-- etc...
50
50
  /assets/ (アイコンファイル)
51
- |-- /win/
52
- |-- icon.ico
51
+ |-- icon.ico
53
52
  /dist/ (パッケージングされたファイルを出力)
54
53
 
55
54
  package.json //これでnpm run pack:win

3

追記

2018/08/31 06:40

投稿

dakarann104
dakarann104

スコア21

title CHANGED
File without changes
body CHANGED
@@ -39,4 +39,17 @@
39
39
  }
40
40
  }
41
41
  ```
42
- 開発環境はWindowsになります。
42
+ 開発環境はWindowsになります。
43
+
44
+ /app/ (Electron アプリ)
45
+ |-- package.json
46
+ |-- main.js
47
+ |-- index.html
48
+ |-- node_modules
49
+ |-- etc...
50
+ /assets/ (アイコンファイル)
51
+ |-- /win/
52
+ |-- icon.ico
53
+ /dist/ (パッケージングされたファイルを出力)
54
+
55
+ package.json //これでnpm run pack:win

2

files削除

2018/08/31 06:39

投稿

dakarann104
dakarann104

スコア21

title CHANGED
File without changes
body CHANGED
@@ -35,11 +35,7 @@
35
35
  "win": {
36
36
  "target": "nsis",
37
37
  "icon":"assets/Icon.ico"
38
- },
38
+ }
39
- "files": [
40
- "!node_modules",
41
- "node_modules"
42
- ]
43
39
  }
44
40
  }
45
41
  ```

1

追記

2018/08/30 01:37

投稿

dakarann104
dakarann104

スコア21

title CHANGED
File without changes
body CHANGED
@@ -9,4 +9,38 @@
9
9
  electron-builder . test-win32-x64 --platform=win --arch=x64
10
10
  ```
11
11
 
12
+ package.jsonを作成して読み込む方法でも上手く行きません...
13
+ ```json
14
+ {
15
+ "name": "test",
16
+ "version": "0.1.0",
17
+ "description": "test",
18
+ "main": "server.js",
19
+ "scripts": {
20
+ "test": "echo \"Error: no test specified\" && exit 1",
21
+ "dev": "electron ./irohanote",
22
+
23
+ "pack:win": "electron-builder ./dist/test-win32-x64 --platform=win --arch=x64"
24
+ },
25
+ "author": "",
26
+ "license": "BSD",
27
+ "dependencies": {
28
+ "electron": "^2.0.7",
29
+ "express": "^4.16.3",
30
+ "gulp": "^3.9.1",
31
+ "jquery": "^2.2.4"
32
+ },
33
+ "build": {
34
+ "appId": "com.test.app",
35
+ "win": {
36
+ "target": "nsis",
37
+ "icon":"assets/Icon.ico"
38
+ },
39
+ "files": [
40
+ "!node_modules",
41
+ "node_modules"
42
+ ]
43
+ }
44
+ }
45
+ ```
12
46
  開発環境はWindowsになります。