File tree 1 file changed +16
-3
lines changed
1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ clean () {
33
33
rm -rf *.zip
34
34
rm -rf *.deb
35
35
rm -rf rel_deb
36
+ rm -rf rel_bin
36
37
rm -rf scriptform-*
37
38
rm -rf doc/manual.html
38
39
rm -rf doc/MANUAL.html
@@ -96,7 +97,7 @@ release_src () {
96
97
cp doc/MANUAL.html "$PROG-$REL_VERSION/MANUAL.html"
97
98
98
99
# Bump version numbers
99
- find "$PROG-$REL_VERSION/" -type f -print0 | xargs -0 sed -i "s/%%VERSION%%/$REL_VERSION/g"
100
+ find "$PROG-$REL_VERSION/" -type f -print0 | xargs -0 sed -i "s/%%VERSION%%/$REL_VERSION/g"
100
101
101
102
# Create archives
102
103
zip -q -r "$PROG-$REL_VERSION.zip" "$PROG-$REL_VERSION"
@@ -129,7 +130,7 @@ release_deb () {
129
130
cp -ar contrib/debian/DEBIAN "rel_deb/"
130
131
131
132
# Bump version numbers
132
- find rel_deb/ -type f -print0 | xargs -0 sed -i "s/%%VERSION%%/$REL_VERSION/g"
133
+ find rel_deb/ -type f -print0 | xargs -0 sed -i "s/%%VERSION%%/$REL_VERSION/g"
133
134
134
135
# Create debian pacakge
135
136
fakeroot dpkg-deb --build rel_deb > /dev/null
@@ -169,12 +170,24 @@ release_bin () {
169
170
_release_check "$*"
170
171
171
172
rm -rf dist/scriptform/
172
- pyinstaller --strip --onefile src/scriptform.py
173
+
174
+ # Create copy and bump version numbers
175
+ cp -ar src/ rel_bin/
176
+ find rel_bin/ -type f -print0 | xargs -0 sed -i "s/%%VERSION%%/$REL_VERSION/g"
177
+
178
+ # Generate binary
179
+ pyinstaller --strip --onefile rel_bin/scriptform.py
180
+
181
+ # Generate tarball
173
182
mv dist $PROG-$REL_VERSION-bin64
183
+ cp contrib/scriptform.service $PROG-$REL_VERSION-bin64
174
184
tar -czf $PROG-$REL_VERSION-bin64.tar.gz $PROG-$REL_VERSION-bin64
185
+
186
+ # Cleanup
175
187
rm -rf $PROG-$REL_VERSION-bin64
176
188
rm -rf $PROG.spec
177
189
rm -rf build
190
+ rm -rf rel_bin
178
191
}
179
192
180
193
release () {
You can’t perform that action at this time.
0 commit comments