-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into brunohpaiva/disco…
…rd-activity-type
- Loading branch information
Showing
44 changed files
with
5,218 additions
and
4,394 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
# These are supported funding model platforms | ||
github: Taiko2k | ||
|
||
github: [Taiko2k] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
patreon: taiko2k # Replace with a single Patreon username | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
otechie: # Replace with a single Otechie username | ||
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry | ||
polar: # Replace with a single Polar username | ||
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username | ||
thanks_dev: # Replace with a single thanks.dev username | ||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
name: Build Linux app | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.13' | ||
|
||
- name: Install deps | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y \ | ||
gettext \ | ||
gobject-introspection \ | ||
gir1.2-rsvg-2.0 \ | ||
kde-config-gtk-style \ | ||
libcanberra-gtk3-module \ | ||
libgirepository1.0-dev \ | ||
python3-gi-cairo \ | ||
libayatana-appindicator3-dev \ | ||
libcairo2-dev \ | ||
libpipewire-0.3-dev \ | ||
libdbus-1-dev \ | ||
libjxl-dev \ | ||
libflac-dev \ | ||
libgme-dev \ | ||
libmpg123-dev \ | ||
libopenmpt-dev \ | ||
libopusfile-dev \ | ||
libsamplerate0-dev \ | ||
libsdl2-image-dev \ | ||
libvorbis-dev \ | ||
libwavpack-dev \ | ||
p7zip | ||
# JPEG-XL hack since 24.04 is too old | ||
sudo apt-get install -y \ | ||
libgif7 \ | ||
wget | ||
wget http://mirrors.kernel.org/ubuntu/pool/universe/j/jpeg-xl/libjxl-dev_0.10.3-4ubuntu1_amd64.deb | ||
wget http://mirrors.kernel.org/ubuntu/pool/universe/j/jpeg-xl/libjxl0.10_0.10.3-4ubuntu1_amd64.deb | ||
wget http://mirrors.kernel.org/ubuntu/pool/universe/h/highway/libhwy-dev_1.2.0-3ubuntu2_amd64.deb | ||
wget http://mirrors.kernel.org/ubuntu/pool/universe/h/highway/libhwy1t64_1.2.0-3ubuntu2_amd64.deb | ||
wget http://mirrors.kernel.org/ubuntu/pool/main/l/lcms2/liblcms2-dev_2.14-2build1_amd64.deb | ||
sudo dpkg -i *.deb | ||
- name: Install Python dependencies and setup venv | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m venv .venv | ||
source .venv/bin/activate | ||
pip install \ | ||
-r requirements.txt \ | ||
build \ | ||
pyinstaller | ||
- name: Build the project using python-build | ||
run: | | ||
source .venv/bin/activate | ||
python -m compile_translations | ||
python -m build --wheel | ||
- name: Install the project into a venv | ||
run: | | ||
source .venv/bin/activate | ||
pip install --prefix ".venv" dist/*.whl | ||
- name: "[DEBUG] List all files" | ||
run: find . | ||
|
||
- name: Build Linux App with PyInstaller | ||
run: | | ||
source .venv/bin/activate | ||
pyinstaller --log-level=DEBUG linux.spec | ||
- name: Remove libwayland*.so files due to https://github.com/pyinstaller/pyinstaller/issues/8963 | ||
run: rm ./dist/TauonMusicBox/_internal/libwayland* | ||
|
||
- name: Create 7Z | ||
run: | | ||
APP_NAME="TauonMusicBox" | ||
cd "dist/${APP_NAME}" | ||
ARCHIVE_PATH="../../${APP_NAME}.7z" | ||
7z a -r "${ARCHIVE_PATH}" "." | ||
- name: Upload 7Z artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: TauonMusicBox-linux | ||
path: TauonMusicBox.7z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
name: Build Windows (MINGW64) app | ||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
# TODO(Martin): p7zip should be 7zip but MINGW64 hasn't updated at the time of writing, try switching it later | ||
- name: Read Package List | ||
id: read_packages | ||
run: | | ||
$packages = Get-Content extra/msyspac.txt -Raw | Out-String | ||
$packages = $packages -replace "`r`n", " " -replace "`n", " " | ||
$packages = $packages.Trim() + " p7zip" | ||
echo "packages=$packages" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 | ||
- name: Set up MSYS2 MinGW-W64 | ||
uses: msys2/setup-msys2@v2 | ||
with: | ||
msystem: mingw64 | ||
update: true | ||
install: ${{ env.packages }} | ||
# ca-certificates | ||
# mingw-w64-x86_64-python-zeroconf | ||
# mingw-w64-x86_64-zlib | ||
|
||
- name: Update CA trust and hack opusfile | ||
shell: msys2 {0} | ||
run: | | ||
update-ca-trust | ||
# https://github.com/xiph/opusfile/pull/47 | ||
sed -i 's,<opus_multistream.h>,<opus/opus_multistream.h>,' /mingw64/include/opus/opusfile.h | ||
- name: Install Python dependencies and setup venv | ||
shell: msys2 {0} | ||
run: | | ||
python -m pip install --break-system-packages --upgrade pip | ||
python -m venv .venv | ||
export CFLAGS="-I/mingw64/include" | ||
export PIP_FIND_LINKS=https://github.com/ddelange/python-magic/releases/expanded_assets/0.4.28.post8 | ||
.venv/bin/python -m pip install \ | ||
-r requirements.txt \ | ||
build \ | ||
pyinstaller | ||
- name: Build the project using python-build | ||
shell: msys2 {0} | ||
run: | | ||
source .venv/bin/activate | ||
python -m compile_translations | ||
python -m build --wheel | ||
- name: Install the project into a venv | ||
shell: msys2 {0} | ||
run: | | ||
source .venv/bin/activate | ||
pip install --prefix ".venv" dist/*.whl | ||
# https://github.com/Taiko2k/Tauon/pull/931#issuecomment-1464880133 | ||
- name: Download optionals from latest release files and notofonts' GitHub | ||
shell: msys2 {0} | ||
run: | | ||
curl -L -o librespot.exe https://github.com/Taiko2k/Tauon/releases/download/v7.8.3/librespot.exe | ||
curl -L -o TaskbarLib.tlb https://github.com/Taiko2k/Tauon/releases/download/v7.8.3/TaskbarLib.tlb | ||
curl -L -o TauonSMTC.dll https://github.com/Taiko2k/Tauon/releases/download/v7.8.3/TauonSMTC.dll | ||
mkdir fonts | ||
curl -L -o fonts/NotoSans-ExtraCondensed.ttf https://github.com/notofonts/notofonts.github.io/raw/refs/heads/main/fonts/NotoSans/full/ttf/NotoSans-ExtraCondensed.ttf # 800KB | ||
curl -L -o fonts/NotoSans-ExtraCondensedBold.ttf https://github.com/notofonts/notofonts.github.io/raw/refs/heads/main/fonts/NotoSans/full/ttf/NotoSans-ExtraCondensedBold.ttf # 800KB | ||
curl -L -o fonts/NotoSans-Bold.ttf https://github.com/notofonts/notofonts.github.io/raw/refs/heads/main/fonts/NotoSans/full/ttf/NotoSans-Bold.ttf # 800KB | ||
curl -L -o fonts/NotoSans-Medium.ttf https://github.com/notofonts/notofonts.github.io/raw/refs/heads/main/fonts/NotoSans/full/ttf/NotoSans-Medium.ttf # 800KB | ||
curl -L -o fonts/NotoSans-Regular.ttf https://github.com/notofonts/notofonts.github.io/raw/refs/heads/main/fonts/NotoSans/full/ttf/NotoSans-Regular.ttf # 800KB | ||
curl -L -o fonts/NotoSansCJKjp-Bold.otf https://github.com/notofonts/noto-cjk/raw/refs/heads/main/Sans/OTF/Japanese/NotoSansCJKjp-Bold.otf # 16MB | ||
curl -L -o fonts/NotoSansCJKjp-Medium.otf https://github.com/notofonts/noto-cjk/raw/refs/heads/main/Sans/OTF/Japanese/NotoSansCJKjp-Medium.otf # 16MB | ||
curl -L -o fonts/NotoSansCJKjp-Regular.otf https://github.com/notofonts/noto-cjk/raw/refs/heads/main/Sans/OTF/Japanese/NotoSansCJKjp-Regular.otf # 16MB | ||
- name: "[DEBUG] List all files" | ||
shell: msys2 {0} | ||
run: find . | ||
|
||
- name: Build Windows App with PyInstaller | ||
shell: msys2 {0} | ||
run: | | ||
source .venv/bin/activate | ||
pyinstaller --log-level=DEBUG windows.spec | ||
- name: Create 7Z | ||
shell: msys2 {0} | ||
run: | | ||
APP_NAME="TauonMusicBox" | ||
cd "dist/${APP_NAME}" | ||
ARCHIVE_PATH="../../${APP_NAME}.7z" | ||
7z a -r "${ARCHIVE_PATH}" "." | ||
- name: Upload 7Z artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: TauonMusicBox-windows | ||
path: TauonMusicBox.7z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
name: Build macOS app | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.13' | ||
|
||
- name: brew update and upgrade | ||
run: brew update && brew upgrade | ||
|
||
- name: Install brew dependencies | ||
run: | | ||
brew install \ | ||
gobject-introspection \ | ||
gtk+3 \ | ||
pango \ | ||
sdl2 \ | ||
sdl2_image \ | ||
jpeg-xl \ | ||
ffmpeg \ | ||
librsvg \ | ||
opusfile \ | ||
libopenmpt \ | ||
wavpack \ | ||
game-music-emu | ||
- name: Install Python dependencies and setup venv | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m venv .venv | ||
source .venv/bin/activate | ||
export CXXFLAGS="-I/opt/homebrew/include" | ||
export LDFLAGS="-L/opt/homebrew/lib" | ||
pip install \ | ||
-r requirements.txt \ | ||
build | ||
# Hack until pyinstaller has a release newer than 6.11.1 - https://github.com/pyinstaller/pyinstaller/releases | ||
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip | ||
# pyinstaller | ||
# CFLAGS: "-I/opt/homebrew/include" | ||
|
||
- name: Build the project using python-build | ||
run: | | ||
source .venv/bin/activate | ||
python -m compile_translations | ||
python -m build --wheel | ||
- name: Install the project into a venv | ||
run: | | ||
source .venv/bin/activate | ||
pip install --prefix ".venv" dist/*.whl | ||
- name: "[DEBUG] List all files" | ||
run: find . | ||
|
||
- name: Build macOS app with PyInstaller | ||
run: | | ||
source .venv/bin/activate | ||
pyinstaller --log-level=DEBUG mac.spec | ||
env: | ||
DYLD_LIBRARY_PATH: "/opt/homebrew/lib" | ||
|
||
- name: "[DEBUG] List all files in .app" | ||
run: find "dist/TauonMusicBox.app" | ||
|
||
- name: Create DMG | ||
run: | | ||
mkdir -p dist/dmg | ||
APP_NAME="TauonMusicBox" | ||
APP_PATH="dist/${APP_NAME}.app" | ||
DMG_PATH="dist/dmg/${APP_NAME}.dmg" | ||
# Create a .dmg package | ||
hdiutil create -volname "$APP_NAME" -srcfolder "$APP_PATH" -ov -format UDZO "$DMG_PATH" | ||
- name: Upload DMG artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: TauonMusicBox-dmg | ||
path: dist/dmg/TauonMusicBox.dmg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Tauon Linux CI | ||
name: Compile translations on Linux | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.