Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
Update releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
srevinsaju committed Apr 21, 2020
1 parent b37f4a6 commit 5b08d0c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 15 deletions.
2 changes: 1 addition & 1 deletion guiscrcpy/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
"""

VERSION = '3.4.post72.dev'
VERSION = '3.4.post78.dev'
29 changes: 17 additions & 12 deletions releaser
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

import os
import sys
from os import path

this_directory = path.abspath(path.dirname(__file__))
Expand All @@ -32,7 +33,8 @@ PACKAGE_DIR = {
'guiscrcpy': [
'*', '*.*', 'resources/*', 'ui/*', 'lib/*', 'platform/*',
'theme/*', 'ux/*', 'network/*', 'settings/*',
'install/*', 'platform/windows_tools/*', 'ui/icons/*', 'ui/fonts/*', 'ui/rsrc/*', 'ui/ui/*'
'install/*', 'platform/windows_tools/*', 'ui/icons/*',
'ui/fonts/*', 'ui/rsrc/*', 'ui/ui/*'
]
}

Expand Down Expand Up @@ -73,17 +75,20 @@ def gen_version():
sha = repo.head.object.hexsha
ver = repo.git.describe("--tags")
raw_version = ver.split('-')
if len(raw_version) == 1:
# Stable Release
v = "{}".format(raw_version[0])
elif len(raw_version) == 2:
# Release Candidate
v = "{major}.post{minor}".format(
major=raw_version[0], minor=raw_version[1])
if 'release' in sys.argv:
print(raw_version[0])
else:
# Revision Dev
v = "{major}.post{minor}.dev".format(
major=raw_version[0], minor=raw_version[1])
if len(raw_version) == 1:
# Stable Release
v = "{}".format(raw_version[0])
elif len(raw_version) == 2:
# Release Candidate
v = "{major}.post{minor}".format(
major=raw_version[0], minor=raw_version[1])
else:
# Revision Dev
v = "{major}.post{minor}.dev".format(
major=raw_version[0], minor=raw_version[1])

return v

Expand All @@ -106,7 +111,7 @@ setupfile = \
import os
import sys
from setuptools import setup
import platform
import platform
requirements = ['PyQt5==5.14.2', 'pynput']
if platform.system() == 'Windows':
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import os
import sys
from setuptools import setup
import platform
import platform

requirements = ['PyQt5==5.14.2', 'pynput']
if platform.system() == 'Windows':
Expand All @@ -39,7 +39,7 @@

setup(
name='guiscrcpy',
version='3.4.post72.dev',
version='3.4.post78.dev',
description='An Open Source - Fast - Android Screen Mirroring system.',
long_description="""<img src=https://github.com/srevinsaju/guiscrcpy/blob/master/guiscrcpy/ui/ui/guiscrcpy_logo.png width=25%>
Expand Down

0 comments on commit 5b08d0c

Please sign in to comment.