Added arguments for build

This commit is contained in:
Xonshiz 2021-01-13 21:51:11 +05:30
parent e4cf6ff992
commit 75de028c36
2 changed files with 11 additions and 7 deletions

View File

@ -2,13 +2,13 @@ matrix:
include:
- language: python
python:
- 2.6
- 2.7
dist: trusty
install:
- "pip install -r requirements.txt"
script:
- cd src
- python __main__.py
- python __main__.py --build
- cd ..
notifications:
email:
@ -21,7 +21,7 @@ matrix:
- "pip install -r requirements.txt"
script:
- cd src
- python __main__.py
- python __main__.py --build
- cd ..
notifications:
email:
@ -39,7 +39,7 @@ matrix:
- "pip install pyinstaller"
script:
- cd src
- python __main__.py
- python __main__.py --build
- pyinstaller --onefile --hidden-import=queue "__main__.py" -n "new_movies_123_dl_linux"
- cd ..
notifications:
@ -76,7 +76,7 @@ matrix:
- "pip install pyinstaller"
script:
- cd src
- python __main__.py
- python __main__.py --build
- pyinstaller --onefile --hidden-import=queue "__main__.py" -n "new_movies_123_dl.exe"
- cd ..
notifications:
@ -110,7 +110,7 @@ matrix:
- "pip install pyinstaller"
script:
- cd src
- python3 __main__.py
- python3 __main__.py --build
- pyinstaller --onefile --hidden-import=queue "__main__.py" -n "new_movies_123_dl_osx"
- export newMoviesVersion=`cat version.txt`
- cd ..

View File

@ -15,7 +15,11 @@ from bs4 import BeautifulSoup
class Movies:
def __init__(self, argv, cwd):
print("Main")
if len(argv) > 0:
print("Arguments: {0}".format(argv))
if argv[0] == '--build':
print("Got the build working check. Exiting.")
sys.exit(0)
self.queue = []
related_episodes = []
url = None