mirror of
https://gitea.com/bipinkrish/DeGourou.git
synced 2024-11-17 09:20:22 +00:00
Workflow for building binaries
This commit is contained in:
parent
2969098daa
commit
17de2f82ce
3 changed files with 81 additions and 37 deletions
44
.github/workflows/main.yml
vendored
Normal file
44
.github/workflows/main.yml
vendored
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
name: Executable Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Check-out repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.9.13'
|
||||||
|
architecture: 'x64'
|
||||||
|
cache: 'pip'
|
||||||
|
cache-dependency-path: |
|
||||||
|
**/requirements*.txt
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: |
|
||||||
|
pip install -r requirements.txt
|
||||||
|
|
||||||
|
- name: Build Executable
|
||||||
|
uses: Nuitka/Nuitka-Action@v0.4
|
||||||
|
with:
|
||||||
|
script-name: DeGourou.py
|
||||||
|
onefile: true
|
||||||
|
|
||||||
|
- name: Upload Artifacts
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: ${{ runner.os }} Build
|
||||||
|
path: |
|
||||||
|
build/*.exe
|
||||||
|
build/*.bin
|
||||||
|
build/*.app/**/*
|
|
@ -1,36 +1,36 @@
|
||||||
from setup.login_account import loginAndGetKey
|
from setup.login_account import loginAndGetKey
|
||||||
from setup.fulfill import downloadFile
|
from setup.fulfill import downloadFile
|
||||||
|
|
||||||
from decrypt.decodePDF import decryptPDF
|
from decrypt.decodePDF import decryptPDF
|
||||||
from decrypt.decodeEPUB import decryptEPUB
|
from decrypt.decodeEPUB import decryptEPUB
|
||||||
|
|
||||||
# setting up the account and keys
|
# setting up the account and keys
|
||||||
loginAndGetKey()
|
loginAndGetKey()
|
||||||
|
|
||||||
# acsm file
|
# acsm file
|
||||||
acsmFile = input("Enter ACSM file (press enter if the file name is URLLink.acsm): ")
|
acsmFile = input("Enter ACSM file (press enter if the file name is URLLink.acsm): ")
|
||||||
if acsmFile == "":
|
if acsmFile == "":
|
||||||
from os.path import exists
|
from os.path import exists
|
||||||
if exists("URLLink.acsm"):
|
if exists("URLLink.acsm"):
|
||||||
acsmFile = "URLLink.acsm"
|
acsmFile = "URLLink.acsm"
|
||||||
else:
|
else:
|
||||||
print("URLLink.acsm file does not exists")
|
print("URLLink.acsm file does not exists")
|
||||||
print()
|
print()
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
# downlaod
|
# downlaod
|
||||||
enrcyptedFile = downloadFile(acsmFile)
|
enrcyptedFile = downloadFile(acsmFile)
|
||||||
print(enrcyptedFile)
|
print(enrcyptedFile)
|
||||||
print()
|
print()
|
||||||
|
|
||||||
# decrypt
|
# decrypt
|
||||||
if enrcyptedFile.endswith(".pdf"):
|
if enrcyptedFile.endswith(".pdf"):
|
||||||
decryptedFile = decryptPDF(enrcyptedFile)
|
decryptedFile = decryptPDF(enrcyptedFile)
|
||||||
elif enrcyptedFile.endswith(".epub"):
|
elif enrcyptedFile.endswith(".epub"):
|
||||||
decryptedFile = decryptEPUB(enrcyptedFile)
|
decryptedFile = decryptEPUB(enrcyptedFile)
|
||||||
else:
|
else:
|
||||||
print("Not in supported file formats")
|
print("Not in supported file formats")
|
||||||
print()
|
print()
|
||||||
exit(1)
|
exit(1)
|
||||||
print(decryptedFile)
|
print(decryptedFile)
|
||||||
print()
|
print()
|
|
@ -17,14 +17,14 @@
|
||||||
|
|
||||||
1. Clone the repositary or Downlaod zip file and extract it
|
1. Clone the repositary or Downlaod zip file and extract it
|
||||||
2. Install requirements using pip
|
2. Install requirements using pip
|
||||||
3. Run "main" file
|
3. Run "DeGourou" file
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
git clone https://github.com/bipinkrish/DeGourou.git
|
git clone https://github.com/bipinkrish/DeGourou.git
|
||||||
cd DeGourou
|
cd DeGourou
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
python main.py
|
python DeGourou.py
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
Loading…
Reference in a new issue