|
66 | 66 | - name: Install Rust toolchain |
67 | 67 | uses: dtolnay/rust-toolchain@stable |
68 | 68 |
|
| 69 | + # Bake macOS-style touch-to-stop into the prebuilt (hyprcorrect-bin) only: |
| 70 | + # vendored forks add the Wayland hold gesture so kinetic scroll stops on a |
| 71 | + # finger-rest. Source / crates.io builds omit this patch and degrade |
| 72 | + # gracefully (kanso reads a flag that's simply never written). Pinned by |
| 73 | + # rev. Drop once upstreamed — rust-windowing/winit#4585, emilk/egui#8223. |
| 74 | + - name: Bake in touchpad hold-to-stop (prebuilt only) |
| 75 | + run: | |
| 76 | + { |
| 77 | + echo '' |
| 78 | + echo '[patch.crates-io]' |
| 79 | + echo 'winit = { git = "https://github.com/jondkinney/winit-cohort", rev = "ee951c3aa13036b104cb54788465c63c5f8d22a0" }' |
| 80 | + echo 'egui-winit = { git = "https://github.com/jondkinney/egui-winit-cohort", rev = "8299c3826a66384b39dbbca545dc5a5d311bb331" }' |
| 81 | + } >> Cargo.toml |
| 82 | +
|
69 | 83 | - name: Build release binary |
70 | 84 | env: |
71 | 85 | # Strip workspace + cargo paths out of the binary so |
@@ -151,6 +165,18 @@ jobs: |
151 | 165 | - name: Install Rust toolchain |
152 | 166 | uses: dtolnay/rust-toolchain@stable |
153 | 167 |
|
| 168 | + # Bake macOS-style touch-to-stop into the prebuilt (hyprcorrect-bin) only — |
| 169 | + # see the x86_64 job above. Pinned by rev; drop once upstreamed |
| 170 | + # (rust-windowing/winit#4585, emilk/egui#8223). |
| 171 | + - name: Bake in touchpad hold-to-stop (prebuilt only) |
| 172 | + run: | |
| 173 | + { |
| 174 | + echo '' |
| 175 | + echo '[patch.crates-io]' |
| 176 | + echo 'winit = { git = "https://github.com/jondkinney/winit-cohort", rev = "ee951c3aa13036b104cb54788465c63c5f8d22a0" }' |
| 177 | + echo 'egui-winit = { git = "https://github.com/jondkinney/egui-winit-cohort", rev = "8299c3826a66384b39dbbca545dc5a5d311bb331" }' |
| 178 | + } >> Cargo.toml |
| 179 | +
|
154 | 180 | - name: Build release binary |
155 | 181 | env: |
156 | 182 | RUSTFLAGS: --remap-path-prefix=${{ github.workspace }}=/build --remap-path-prefix=/home/runner/.cargo=/cargo |
|
0 commit comments