mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-27 13:16:36 +00:00
Implement Windows installers
Partially Fixes: https://github.com/resin-io/etcher/issues/88
This commit is contained in:
parent
efb2c4c911
commit
44ce11b338
26
Makefile
26
Makefile
@ -57,17 +57,33 @@ release/Etcher-win32-x64: .
|
|||||||
--overwrite \
|
--overwrite \
|
||||||
--out=release/
|
--out=release/
|
||||||
|
|
||||||
package-osx: release/Etcher-darwin-x64
|
|
||||||
package-linux: release/Etcher-linux-ia32 release/Etcher-linux-x64
|
|
||||||
package-win32: release/Etcher-win32-ia32 release/Etcher-win32-x64
|
|
||||||
package-all: package-osx package-linux package-win32
|
|
||||||
|
|
||||||
release/installers/Etcher.dmg: release/Etcher-darwin-x64 package.json
|
release/installers/Etcher.dmg: release/Etcher-darwin-x64 package.json
|
||||||
$(ELECTRON_BUILDER) "$</$(APPLICATION_NAME).app" \
|
$(ELECTRON_BUILDER) "$</$(APPLICATION_NAME).app" \
|
||||||
--platform=osx \
|
--platform=osx \
|
||||||
--out=release/installers
|
--out=release/installers
|
||||||
|
|
||||||
|
release/installers/Etcher-x64.exe: release/Etcher-win32-x64 package.json
|
||||||
|
$(ELECTRON_BUILDER) $< \
|
||||||
|
--platform=win \
|
||||||
|
--out=release/installers/win-x64
|
||||||
|
mv release/installers/win-x64/Etcher\ Setup.exe $@
|
||||||
|
rmdir release/installers/win-x64
|
||||||
|
|
||||||
|
release/installers/Etcher.exe: release/Etcher-win32-ia32 package.json
|
||||||
|
$(ELECTRON_BUILDER) $< \
|
||||||
|
--platform=win \
|
||||||
|
--out=release/installers/win-ia32
|
||||||
|
mv release/installers/win-ia32/Etcher\ Setup.exe $@
|
||||||
|
rmdir release/installers/win-ia32
|
||||||
|
|
||||||
|
package-osx: release/Etcher-darwin-x64
|
||||||
|
package-linux: release/Etcher-linux-ia32 release/Etcher-linux-x64
|
||||||
|
package-win32: release/Etcher-win32-ia32 release/Etcher-win32-x64
|
||||||
|
package-all: package-osx package-linux package-win32
|
||||||
|
|
||||||
installer-osx: release/installers/Etcher.dmg
|
installer-osx: release/installers/Etcher.dmg
|
||||||
|
installer-win32: release/installers/Etcher-x64.exe release/installers/Etcher.exe
|
||||||
|
installer-all: installer-osx installer-win32
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf release/
|
rm -rf release/
|
||||||
|
@ -17,7 +17,7 @@ npm install --force
|
|||||||
Run the following command to package Etcher
|
Run the following command to package Etcher
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
make installer-osx
|
make installer-all
|
||||||
```
|
```
|
||||||
|
|
||||||
The resulting packages will be saved to `release/installers`.
|
The resulting packages will be saved to `release/installers`.
|
||||||
|
@ -26,6 +26,13 @@
|
|||||||
{ "x": 415, "y": 225, "type": "link", "path": "/Applications" },
|
{ "x": 415, "y": 225, "type": "link", "path": "/Applications" },
|
||||||
{ "x": 140, "y": 225, "type": "file" }
|
{ "x": 140, "y": 225, "type": "file" }
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"win": {
|
||||||
|
"title" : "Etcher",
|
||||||
|
"version" : "0.0.1",
|
||||||
|
"publisher": "Resin.io",
|
||||||
|
"icon" : "assets/icon.ico",
|
||||||
|
"verbosity": 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user