-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
55 lines (44 loc) · 1.78 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# chrome ext is just zipped
# choco/nuget is packed - in this case `cd dir && choco pack`
#
# careful: if executed in powershell, it will still be in cmd
#
# using: https://community.chocolatey.org/packages/make and https://community.chocolatey.org/packages/choco-nuspec-checker
all:
@if not exist release mkdir release
@make chrome
@make choco
chrome:
@echo === packup as zip and filter using .gitignore
cmd /C "del release\chocolatey-appstore-theme.zip"
7z.exe a -tzip "release/chocolatey-appstore-theme.zip" "chocolatey-appstore-theme" -bd -mx9 -xr@".gitignore"
@echo upload here: https://chrome.google.com/webstore/devconsole/
choco:
@echo === validate the package definition
cnc choco-package/
@echo === pack up
choco pack choco-package/chocolatey-appstore-chrome.nuspec
move chocolatey-appstore-chrome.*.nupkg release/
test-choco:
cinst chocolatey-appstore-chrome -source .\choco-package
test-build:
choco install chocolatey-appstore-chrome --source .\release
test-chrome:
-taskkill /IM chrome.exe /F 2>NUL
@cmd /C "start /B make _test-chrome-async"
_test-chrome-async:
cmd /C "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --load-extension=%cd%\chocolatey-appstore-theme https://community.chocolatey.org/packages
choco-login-info:
@echo Do login first, prior to publishing (on new machine in admin):
@echo choco apikey --api-key [API_KEY_HERE] -source https://push.chocolatey.org/
@echo.
@echo api key here: https://community.chocolatey.org/account
@echo howto: https://docs.chocolatey.org/en-us/create/create-packages-quick-start
@echo.
@echo Api key status:
choco apikey
choco-publish:
@echo === publish package
@cmd /C "dir release\*.nupkg /B"
@echo do it manually with the correct version:
@echo choco push ./release/chocolatey-appstore-chrome. xxxx .nupkg