Skip to content

Commit 5910c7d

Browse files
committed
add scripts to help automate release uploading
1 parent 331a947 commit 5910c7d

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

dist/zip_folders.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
for i in */; do zip -r "${i%/}.zip" "$i"; done

upload_release_files.sh

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/bin/bash
2+
3+
# $1 is the tag
4+
5+
cd dist
6+
7+
echo 'started mac ...'
8+
9+
github-release upload -u aaronduino -r snippet-manager \
10+
-t $1 \
11+
-n 'mac.zip' \
12+
-f CodeSnippets-darwin-x64.zip
13+
14+
echo 'started win32-ia32 ...'
15+
16+
github-release upload -u aaronduino -r snippet-manager \
17+
-t $1 \
18+
-n 'win32-ia32.zip' \
19+
-f CodeSnippets-win32-ia32.zip
20+
21+
echo 'started win32-x64 ...'
22+
23+
github-release upload -u aaronduino -r snippet-manager \
24+
-t $1 \
25+
-n 'win32-x64.zip' \
26+
-f CodeSnippets-win32-x64.zip
27+
28+
echo 'started linux-ia32 ...'
29+
30+
github-release upload -u aaronduino -r snippet-manager \
31+
-t $1 \
32+
-n 'linux-ia32.zip' \
33+
-f CodeSnippets-linux-ia32.zip
34+
35+
echo 'started linux-armv7l ...'
36+
37+
github-release upload -u aaronduino -r snippet-manager \
38+
-t $1 \
39+
-n 'linux-armv7l.zip' \
40+
-f CodeSnippets-linux-armv7l.zip
41+
42+
echo 'finished'

0 commit comments

Comments
 (0)