forked from MrS0m30n3/youtube-dl-gui
-
-
Notifications
You must be signed in to change notification settings - Fork 131
development
Oleksis Fraga MenΓ©ndez edited this page Aug 10, 2023
·
6 revisions
- 7Zip
β winget install -e --id 7zip.7zip
- Git
β winget install -e --id Git.Git
- AzureCLI
# https://learn.microsoft.com/en-us/azure/devops/repos/git/share-your-code-in-git-cmdline?view=azure-devops#download-and-install-azure-cli-and-add-azure-devops-extension
β winget install -e --id Microsoft.AzureCLI
β az --version
# set environment variable for current process
β $env:AZURE_DEVOPS_EXT_PAT = 'xxxxxxxxxx'
β az devops login --organization https://dev.azure.com/oleksis
β az devops configure --defaults organization=https://dev.azure.com/oleksis project=yt-dlg
β git remote add azure https://dev.azure.com/oleksis/yt-dlg/_git/yt-dlg
β git push azure master
- RealVNC.VNCViewer
β winget install -e --id RealVNC.VNCViewer
- Advanced Installer
β winget install -e --id Caphyon.AdvancedInstaller
- Update package manifest
β wingetcreate update --urls "https://github.com/oleksis/youtube-dl-gui/releases/download/v1.8.4/yt-dlg-20221113.1.msi|x64" --version 1.8.4 -s -t ghp_PERSONAL_TOKEN yt-dlg.yt-dlg
See
β py -3.11 -m venv venv
β .\venv\Scripts\Activate.ps1
β py -c "import sys; print(sys.version, sys.executable, sep='\n')"
β py -m pip install -U pip wheel setuptools
# See Notes: [wxPython Windows artifacts for Python 3.7 to 3.11]
β iwr -Uri "<https://artprodcca1.artifacts.visualstudio.com-artifact-wxPython-4.2.1a1-cp311-cp311-win_amd64.whl>" -OutFile wxPython-4.2.1a1-cp311-cp311-win_amd64.whl
β py -m pip install wxPython-4.2.1a1-cp311-cp311-win_amd64.whl
β py -m pip install polib -r requirements/requirements.in
β py setup.py build_trans
β py -m youtube_dl_gui
Use pip install tox>=4.1.2
for test diferents Python versions from Microsoft Store (3.7, 3.8, 3.9, 3.10)
β pyenv install 3.7.9 3.8.10 3.9.13 3.10.10 3.11.2
β pyenv local 3.7.9 3.8.10 3.9.13 3.10.10 3.11.2
β python310 -m venv venv
β .\venv\Scripts\Activate.ps1
β py -m pip install -e .[binaries]
β py -m pip install -r .\requirements\requirements-dev.in
β pyenv exec py -m tox
- PyInstaller one dir
β pyinstaller -w -D --icon=youtube_dl_gui/data/pixmaps/youtube-dl-gui.ico --add-data="youtube_dl_gui/data;youtube_dl_gui/data" --add-data="youtube_dl_gui/locale;youtube_dl_gui/locale" --exclude-module=tests --version-file=file_version_info.txt --noconfirm --name=yt-dlg youtube_dl_gui/__main__.py
β docker run --name yt-dlg -it -d --workdir /src -v ${pwd}:/src pyinstaller-manylinux -w -F --add-data=youtube_dl_gui/data:youtube_dl_gui/data --add-data=youtube_dl_gui/locale:youtube_dl_gui/locale --exclude-module=tests --name=yt-dlg youtube_dl_gui/__main__.py
- Interactive terminal typing (tty)
β docker run --name ytdlg-pyenv -it --entrypoint bash --workdir /src -v ${pwd}:/src pyinstaller-manylinux
Use devcontainer
with dev container Features: Light-weight Desktop (desktop-lite)
VNC Sever
-
user: vscode
-
password: vscode
-
Public devcontainer to Packages (GHCR) Install
devcontainer
npm install -g @devcontainers/cli
$env:PATH="$env:APPDATA\npm;$env:PATH"
devcontainer --version
Example of building and publishing an image
export CR_PAT='YOUR_TOKEN'
echo $CR_PAT | docker login ghcr.io -u USERNAME --password-stdin
devcontainer build --workspace-folder . --push true --image-name ghcr.io/USERNAME/IMAGE-NAME:latest
devcontainer up --workspace-folder .
Create a resume. What's Changed, Contributors
- Compare from the lastest release
https://github.com/oleksis/youtube-dl-gui/compare/v1.8.4...HEAD
See all the Python base version from version-manifest.json
- Select the Python base
- Python 3.10.y
- 3.10.10
- Actions Setup-Python
- GitHub Actions and Azure UsePythonVersion
- 3.8.15, 3.9.9-win32-x64, 3.10.10-win32-x64
Search for 3.10.y in files like:
- Review
youtube_dl_gui\version.py
-
.github/workflows/release.yml
for Python base .azure/azure-pipelines-build.yml
- .python-version
- setup.sh
- file_version_info.txt
- docs/yt-dlg.aip
- snapcraft.yaml
- Build
- Build MSI from azure-pipelines
- Build binary (pyinstaller) using Windows embeddable package (64-bit)
- Build using ManyLinux
- Update stores Microsoft, Snapcraft
- Update Open Build Service
- Update discussion
python3 -m pip install -U git+https://github.com/oleksis/youtube-dl-gui#egg=yt-dlg
twine upload --repository testpypi "youtube-dl-gui/dist/yt_dlg-1.8.6*"
python3 -m pip install -U --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ yt-dlg
- Fedora 32
- openSUSE Leap 15.3
- Debian 11 Bullseye
- Ubuntu 20.04 LTS (Focal Fossa)
- wxPython using Wayland
GDK_BACKEND=x11 ./dist/yt-dlg