Skip to content

Commit 618e79c

Browse files
author
TECHTANIC
committed
2 parents 455265c + 29d3fc7 commit 618e79c

File tree

5 files changed

+112
-123
lines changed

5 files changed

+112
-123
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -5,60 +5,41 @@ on:
55
push:
66

77
jobs:
8-
98
build-windows:
109
name: Build windows
11-
#needs: createrelease
1210
runs-on: windows-latest
1311
steps:
14-
- uses: actions/checkout@v1
12+
- uses: actions/checkout@v2
1513
- name: Set up Python 3.8
1614
uses: actions/setup-python@v2
1715
with:
1816
python-version: 3.8
1917
- name: Install dependencies
2018
run: |
2119
python -m pip install --upgrade pip
22-
pip install -r requirements.txt
20+
pip install -r GUI/requirements.txt -U
21+
pip install -r CLI/requirements.txt -U
2322
pip install pyinstaller
24-
- name: Build with pyinstaller for windows
25-
run: pyinstaller -y -F -w -i "DUCE-LOGO.ico" --name "Discounted-Udemy-Course-Enroller-windows" --add-data="pack;pack/" "udemy.py"
26-
- name: Save exe
27-
uses: actions/upload-artifact@v1
28-
with:
29-
name: Discounted-Udemy-Course-Enroller-windows.exe
30-
path: ./dist/Discounted-Udemy-Course-Enroller-windows.exe
3123
32-
# - name: Upload Release Asset
33-
#
34-
# id: upload-release-asset
35-
# uses: actions/upload-release-asset@v1
36-
# env:
37-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
# with:
39-
# upload_url: ${{ steps.get_release_info.outputs.upload_url }}
40-
# asset_path: ./dist/Discounted-Udemy-Course-Enroller-windows.exe
41-
# asset_name: Discounted-Udemy-Course-Enroller-windows.exe
42-
# asset_content_type: application/vnd.microsoft.portable-executable
24+
- name: Build GUI
25+
run: pyinstaller -y -F -w -i "GUI/DUCE-LOGO.ico" --name "DUCE-GUI-windows" --add-data="GUI/pack;pack/" --add-data "c:\hostedtoolcache\windows\python\3.8.10\x64\lib\site-packages\cloudscraper;./cloudscraper/" "GUI/duce.py"
26+
27+
- name: Build CLI
28+
run: pyinstaller -y -F -c -i "CLI/DUCE-LOGO.ico" --name "DUCE-CLI-windows" --add-data="CLI/colors.py;." --add-data "c:\hostedtoolcache\windows\python\3.8.10\x64\lib\site-packages\cloudscraper;./cloudscraper/" "CLI/duce.py"
4329

44-
# createrelease:
45-
# name: Create Release
46-
# runs-on: ubuntu-latest
47-
# steps:
48-
# - name: Create Release
49-
# id: create_release
50-
# uses: actions/create-release@v1
51-
# env:
52-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53-
# with:
54-
# tag_name: v
55-
# release_name: Discounted Udemy Course Enroller
56-
# draft: true
57-
# prerelease: false
58-
# - name: Output Release URL File
59-
# run: echo "${{ steps.create_release.outputs.upload_url }}" > release_url.txt
60-
# - name: Save Release URL File for publish
61-
# uses: actions/upload-artifact@v1
62-
# with:
63-
# name: release_url
64-
# path: release_url.txt
30+
- name: Upload GUI.exe
31+
uses: actions/upload-artifact@v2
32+
with:
33+
name: DUCE-GUI-windows.exe
34+
path: ./dist/DUCE-GUI-windows.exe
35+
- name: Upload CLI.exe
36+
uses: actions/upload-artifact@v2
37+
with:
38+
name: DUCE-CLI-windows.exe
39+
path: ./dist/DUCE-CLI-windows.exe
40+
- name: Upload DUCE
41+
uses: actions/upload-artifact@v2
42+
with:
43+
name: DUCE-windows
44+
path: ./dist/
45+

.github/workflows/del-old.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: 'Delete old releases'
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
stale:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- run: ls
10+
#- uses: dev-drprasad/delete-older-releases@v0.2.0
11+
# with:
12+
# keep_latest: 1
13+
# delete_tags: true
14+
# env:
15+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/stale.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: 'Close stale issues and PRs'
22
on:
33
issue_comment:
4+
issues:
45
workflow_dispatch:
56
schedule:
67
- cron: '0 */2 * * *'

.gitignore

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
1-
pack/__pycache__/
2-
output/
3-
__pycache__/
4-
exe-config.json
5-
.vscode/
6-
config.json
7-
txt.txt
8-
pyins.txt
9-
Udemy-Course-Grabber-x64-bit.spec
10-
build/
11-
dist/
12-
test/
13-
pyins.json
1+
GUI/pack/__pycache__/
2+
CLI/__pycache__/
3+
.vscode/
4+
GUI/test.py
5+
test/test.py

README.md

Lines changed: 67 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,67 @@
1-
<p align="center">
2-
<img src="https://cdn.discordapp.com/attachments/823472016999972884/847787981045760010/Group_2_2_1.png">
3-
<br/>
4-
<img src="https://forthebadge.com/images/badges/made-with-python.svg">
5-
<br/>
6-
<a href="https://github.com/techtanic/Discounted-Udemy-Course-Enroller/graphs/commit-activity"><img alt="Maintenance" src="https://img.shields.io/badge/Maintained%3F-yes-green.svg?style=for-the-badge"></a>
7-
<a target="_blank" href="https://discord.gg/wFsfhJh4Rh"><img alt="Discord" src="https://img.shields.io/discord/703266580846346361.svg?label=Discord&logo=Discord&colorB=7289da&style=for-the-badge"></a>
8-
<br/>
9-
<a href="https://github.com/techtanic/Discounted-Udemy-Course-Enroller"><img src="https://cdn.discordapp.com/attachments/823472016999972884/841661124410736710/standard_13.gif"></a>
10-
</p>
11-
12-
13-
# Discounted Udemy Course Enroller
14-
15-
>Software to enroll in available Udemy Paid/Free courses having coupons automatically to your Udemy account.
16-
17-
Everything you need can be on the website.: [techtanic.github.io/duce](https://techtanic.github.io/duce/)
18-
19-
# Downloads
20-
21-
<table>
22-
<thead>
23-
<tr>
24-
<th>GUI</th>
25-
<th>CLI</th>
26-
<th>COLAB</th>
27-
</tr>
28-
</thead>
29-
<tbody>
30-
<tr align="center">
31-
<td><a href="https://github.com/techtanic/Discounted-Udemy-Course-Enroller/releases/latest/download/DUCE-GUI-windows.exe">
32-
<img alt="GUI Windows exe" src="https://img.shields.io/static/v1?message=Download&logo=windows&labelColor=5c5c5c&color=1182c3&label=%20&style=for-the-badge"
33-
>
34-
</a></td>
35-
<td><a href="https://github.com/techtanic/Discounted-Udemy-Course-Enroller/releases/latest/download/DUCE-CLI-windows.exe">
36-
<img alt="CLI Windows exe" src="https://img.shields.io/static/v1?message=Download&logo=windows&labelColor=5c5c5c&color=1182c3&label=%20&style=for-the-badge">
37-
</a></td>
38-
<td><a href="https://colab.research.google.com/github/techtanic/Discounted-Udemy-Course-Enroller/blob/master/COLAB/DUCE.ipynb">
39-
<img alt="Open in Google Colab" src="https://img.shields.io/static/v1?message=Open%20in%20Colab&logo=Google-Colab&labelColor=5c5c5c&color=1182c3&label=%20&style=for-the-badge"
40-
>
41-
</a></td>
42-
</tr>
43-
<tr align="center">
44-
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/techtanic/Discounted-Udemy-Course-Enroller/tree/master/GUI">
45-
<img alt="Download Python code" src="https://img.shields.io/static/v1?message=Code&logo=python&labelColor=bdbdbd&color=1182c3&label=%20&style=for-the-badge"
46-
>
47-
</a></td>
48-
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/techtanic/Discounted-Udemy-Course-Enroller/tree/master/CLI">
49-
<img alt="Download Python code" src="https://img.shields.io/static/v1?message=Code&logo=python&labelColor=bdbdbd&color=1182c3&label=%20&style=for-the-badge"
50-
>
51-
</a></td>
52-
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/techtanic/Discounted-Udemy-Course-Enroller/tree/master/COLAB">
53-
<img alt="Download Python code" src="https://img.shields.io/static/v1?message=Code&logo=python&labelColor=bdbdbd&color=1182c3&label=%20&style=for-the-badge"
54-
>
55-
</a></td>
56-
</tr>
57-
</tbody>
58-
</table>
59-
60-
61-
## Disclaimer
62-
![](https://cdn.discordapp.com/attachments/749247352073617518/785906195767754753/unknown.png)
63-
## Donate
64-
65-
BTC `bc1qdyjwj0eqxjk5hxejah4gyclrumwtqs3hqp63uz`
66-
67-
BTC `14JNjiNoiKcbCHcxcqUxgJcVgyDfhGbxQF`
1+
<p align="center">
2+
<img src="https://cdn.discordapp.com/attachments/823472016999972884/847787981045760010/Group_2_2_1.png">
3+
<br/>
4+
<img src="https://forthebadge.com/images/badges/made-with-python.svg">
5+
<br/>
6+
<a href="https://github.com/techtanic/Discounted-Udemy-Course-Enroller/graphs/commit-activity"><img alt="Maintenance" src="https://img.shields.io/badge/Maintained%3F-yes-green.svg?style=for-the-badge"></a>
7+
<a target="_blank" href="https://discord.gg/wFsfhJh4Rh"><img alt="Discord" src="https://img.shields.io/discord/703266580846346361.svg?label=Discord&logo=Discord&colorB=7289da&style=for-the-badge"></a>
8+
<br/>
9+
<a href="https://github.com/techtanic/Discounted-Udemy-Course-Enroller"><img src="https://cdn.discordapp.com/attachments/823472016999972884/841661124410736710/standard_13.gif"></a>
10+
</p>
11+
12+
13+
# Discounted Udemy Course Enroller
14+
15+
>Software to enroll in available Udemy Paid/Free courses having coupons automatically to your Udemy account.
16+
17+
Everything you need can be on the website.: [techtanic.github.io/duce](https://techtanic.github.io/duce/)
18+
19+
# Downloads
20+
21+
<table>
22+
<thead>
23+
<tr>
24+
<th>GUI</th>
25+
<th>CLI</th>
26+
<th>COLAB</th>
27+
</tr>
28+
</thead>
29+
<tbody>
30+
<tr align="center">
31+
<td><a href="https://github.com/techtanic/Discounted-Udemy-Course-Enroller/releases/latest/download/DUCE-GUI-windows.exe">
32+
<img alt="GUI Windows exe" src="https://img.shields.io/static/v1?message=Download&logo=windows&labelColor=5c5c5c&color=1182c3&label=%20&style=for-the-badge"
33+
>
34+
</a></td>
35+
<td><a href="https://github.com/techtanic/Discounted-Udemy-Course-Enroller/releases/latest/download/DUCE-CLI-windows.exe">
36+
<img alt="CLI Windows exe" src="https://img.shields.io/static/v1?message=Download&logo=windows&labelColor=5c5c5c&color=1182c3&label=%20&style=for-the-badge">
37+
</a></td>
38+
<td><a href="https://colab.research.google.com/github/techtanic/Discounted-Udemy-Course-Enroller/blob/master/COLAB/DUCE.ipynb">
39+
<img alt="Open in Google Colab" src="https://img.shields.io/static/v1?message=Open%20in%20Colab&logo=Google-Colab&labelColor=5c5c5c&color=1182c3&label=%20&style=for-the-badge"
40+
>
41+
</a></td>
42+
</tr>
43+
<tr align="center">
44+
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/techtanic/Discounted-Udemy-Course-Enroller/tree/master/GUI">
45+
<img alt="Download Python code" src="https://img.shields.io/static/v1?message=Code&logo=python&labelColor=bdbdbd&color=1182c3&label=%20&style=for-the-badge"
46+
>
47+
</a></td>
48+
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/techtanic/Discounted-Udemy-Course-Enroller/tree/master/CLI">
49+
<img alt="Download Python code" src="https://img.shields.io/static/v1?message=Code&logo=python&labelColor=bdbdbd&color=1182c3&label=%20&style=for-the-badge"
50+
>
51+
</a></td>
52+
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/techtanic/Discounted-Udemy-Course-Enroller/tree/master/COLAB">
53+
<img alt="Download Python code" src="https://img.shields.io/static/v1?message=Code&logo=python&labelColor=bdbdbd&color=1182c3&label=%20&style=for-the-badge"
54+
>
55+
</a></td>
56+
</tr>
57+
</tbody>
58+
</table>
59+
60+
61+
## Disclaimer
62+
![](https://cdn.discordapp.com/attachments/749247352073617518/785906195767754753/unknown.png)
63+
## Donate
64+
65+
BTC `bc1qdyjwj0eqxjk5hxejah4gyclrumwtqs3hqp63uz`
66+
67+
BTC `14JNjiNoiKcbCHcxcqUxgJcVgyDfhGbxQF`

0 commit comments

Comments
 (0)