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

View File

@ -15,7 +15,11 @@ from bs4 import BeautifulSoup
class Movies: class Movies:
def __init__(self, argv, cwd): 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 = [] self.queue = []
related_episodes = [] related_episodes = []
url = None url = None