forked from jokedst/CsvQuery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Notes.txt
39 lines (23 loc) · 955 Bytes
/
Notes.txt
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
Idea: automatically update pluginmanager on release
These are some pieces for the appveyor.yml
# check out pluginmanager to edit it
# Update fork of plugin list
git clone https://github.com/jokedst/npp-plugins-x64.git npp-plugins-x64
cd npp-plugins-x64
git checkout master
git pull
git checkout -b CsvQuery-v1.2.5
# TODO Changes here
$xml = [xml](cat plugins/plugins64.xml)
$cq = $xml.plugins.plugin | where {$_.Name -eq 'CsvQuery'}
$cq.stability = "Meh"
$xml.Save("plug.xml")
# push
git commit -a -m "CsvQuery updated to v1.2.5"
git push -u origin CsvQuery-v1.2.5
# MD5
$someFilePath = "C:\foo.txt"
$md5 = New-Object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider
$hash = [System.BitConverter]::ToString($md5.ComputeHash([System.IO.File]::ReadAllBytes($someFilePath)))
# call github API to get latest release
$latest = Invoke-WebRequest "https://api.github.com/repos/jokedst/csvquery/releases/latest" | ConvertFrom-Json