Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

Commit

Permalink
feat: initial support for studio wine + wineasio
Browse files Browse the repository at this point in the history
  • Loading branch information
tulilirockz committed Mar 18, 2024
1 parent a85ad9e commit b5f6b98
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 1 deletion.
22 changes: 22 additions & 0 deletions config/common/audio/wine-tkg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
type: rpm-ostree
repos:
- https://copr.fedorainfracloud.org/coprs/patrickl/pipewire-wineasio/repo/fedora-%OS_VERSION%/patrickl-pipewire-wineasio-fedora-%OS_VERSION%.repo
- https://copr.fedorainfracloud.org/coprs/patrickl/yabridge/repo/fedora-%OS_VERSION%/patrickl-yabridge-fedora-%OS_VERSION%.repo
- https://copr.fedorainfracloud.org/coprs/patrickl/wine-tkg/repo/fedora-%OS_VERSION%/patrickl-wine-tkg-fedora-%OS_VERSION%.repo
- https://copr.fedorainfracloud.org/coprs/patrickl/wine-mono/repo/fedora-%OS_VERSION%/patrickl-wine-mono-fedora-%OS_VERSION%.repo
- https://copr.fedorainfracloud.org/coprs/patrickl/wine-mingw-wine-gecko/repo/fedora-%OS_VERSION%/patrickl-mingw-wine-gecko-fedora-%OS_VERSION%.repo
- https://copr.fedorainfracloud.org/coprs/patrickl/vkd3d/repo/fedora-%OS_VERSION%/patrickl-vkd3d-fedora-%OS_VERSION%.repo
- https://copr.fedorainfracloud.org/coprs/patrickl/wine-dxvk/repo/fedora-%OS_VERSION%/patrickl-wine-dxvk-fedora-%OS_VERSION%.repo
- https://copr.fedorainfracloud.org/coprs/patrickl/winetricks/repo/fedora-%OS_VERSION%/patrickl-winetricks-fedora-%OS_VERSION%.repo
- https://copr.fedorainfracloud.org/coprs/patrickl/libcurl-gnutls/repo/fedora-%OS_VERSION%/patrickl-libcurl-gnutls-fedora-%OS_VERSION%.repo
install:
- pipewire-wineasio
- yabridge
- wine
- wine-mono
- mingw32-wine-gecko
- mingw64-wine-gecko
- wine-dxvk*
- winetricks
- yabridge
- libcurl-gnutls
2 changes: 2 additions & 0 deletions config/common/shared/services.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
type: systemd
system:
masked:
- rtkit-daemon
enabled:
- realtime-entsk
- realtime-setup
Expand Down
3 changes: 3 additions & 0 deletions config/files/shared/etc/profile.d/wine.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
export WINEESYNC=1
export WINEFSYNC=1
1 change: 1 addition & 0 deletions config/files/shared/libexec/atomic-studio-cli/mod.nu
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export use manager.nu *
export use wine.nu *
export use motd.nu *
export use reporter.nu *
export use speaker-test.nu *
Expand Down
43 changes: 43 additions & 0 deletions config/files/shared/libexec/atomic-studio-cli/wine.nu
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
export def "main wine" [] {
echo "Usage wine <command>."
}

# Run anythihg through wine-tkg
export def "main wine run" [...rest] {
wine ...$rest
}

# Register pipewire-wineasio DLL to default wine prefix
export def "main wine wineasio register" [] {
wineasio-register
regsvr32 wineasio.dll
}

# Unregister pipewire-wineasio DLL to default wine prefix
export def "main wine wineasio unregister" [] {
regsvr32 /u wineasio.dll
}

# Scans a wine prefix for VSTPlugins folders
export def "main wine yabridge scan" [wine_prefix?: string] {
mut targetPath = $wine_prefix
if $wine_prefix == null {
$targetPath = $"($env.HOME)/.wine"
}

let CURRENTPATH = (pwd)
cd $targetPath
ls -a ./** | where { |e| $e.name | str ends-with VSTPlugins }
cd $CURRENTPATH
}

# Scans a wine prefix for VSTPlugins folders
export def "main wine yabridge add" [wine_prefix?: string] {
studio wine yabridge scan $wine_prefix | par-each { |found_folder| do { run-external yabridgectl add $found_folder.name } & }
yabridgectl sync
}

# Sync yabridgectl database
export def "main wine yabridge sync" [] {
yabridgectl sync
}
2 changes: 1 addition & 1 deletion config/templates/recipe-std.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ local modules = {
amd: ["packages", "scripts"],
gnome: ["apps", "files", "scripts"],
plasma: ["apps", "files", "scripts"],
audio: ["audinux", "pipewire-packages"],
audio: ["audinux", "pipewire-packages" "wine-tkg"],
misc: [{ "type": "yafti" }, { "type": "signing" }],
};

Expand Down

0 comments on commit b5f6b98

Please sign in to comment.