Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weylus Trial -- Samsung Tab S6 & Linux Mint 21.1 #204

Closed
wants to merge 471 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
471 commits
Select commit Hold shift + click to select a range
67ca20d
WIP: Actually use dyn Capturable everywhere!
H-M-H Mar 22, 2021
c323063
WIP: Rename a few things.
H-M-H Mar 22, 2021
038a902
Add autopilot capturable.
H-M-H Mar 22, 2021
b7b3275
Fix benchmarks.
H-M-H Mar 23, 2021
2ea5d5f
Add some docs on the Capturable trait.
H-M-H Mar 23, 2021
9d0737c
uinput only on linux.
H-M-H Mar 23, 2021
fbc8882
Make sure to hide uinput on non linux systems.
H-M-H Mar 23, 2021
8b98279
Scale frame update limit more nicely.
H-M-H Mar 27, 2021
17222f4
Always enable capture cursor option for now.
H-M-H Mar 27, 2021
a2f27d0
Add option to autostart server on program launch.
H-M-H Mar 27, 2021
da8af91
Fix a few things pointed out by clippy.
H-M-H Mar 27, 2021
acaa0a5
Update some dependencies.
H-M-H Mar 29, 2021
52ee0ce
Add option to downscale video.
H-M-H Mar 30, 2021
f1e0bb1
Display FPS in browser.
H-M-H Mar 30, 2021
d34e13f
Add hardware encoding for macOS.
H-M-H Mar 30, 2021
ac4864b
Only clone what's necessary.
H-M-H Mar 30, 2021
ec43f21
Try building windows with nvenc.
H-M-H Mar 30, 2021
428eabe
Actually enable nvenc for windows.
H-M-H Mar 30, 2021
f035664
Actually put FFMPEG_EXTRA_ARGS to the right place.
H-M-H Mar 31, 2021
35b25f0
Set PREFIX here too.
H-M-H Mar 31, 2021
63918bf
Upload deps directory on failure for debugging.
H-M-H Mar 31, 2021
dd682af
Fix broken default pkg-config on windows.
H-M-H Mar 31, 2021
770fd8a
Add some debug logging.
H-M-H Mar 31, 2021
d2e5123
Fix argument order.
H-M-H Mar 31, 2021
6e50a7c
Add hardware encoding via MediaFoundation.
H-M-H Mar 31, 2021
494a5a0
Implement requesting screen cast via dbus.
H-M-H Mar 25, 2021
8d4c5c5
Simplify Recorder trait.
H-M-H Mar 27, 2021
98892b5
Implement Capturable for Wayland using gstreamer.
H-M-H Mar 27, 2021
0afb51f
Add dependencies required for gstreamer.
H-M-H Mar 27, 2021
63ffd7a
No new buffer doesn't always imply an error.
H-M-H Mar 28, 2021
6f27c95
Handle pipewire returning invalid buffers
H-M-H Mar 28, 2021
93cf67c
Set always-copy to true for pipewiresrc.
H-M-H Mar 28, 2021
a61cb81
Workaround another pipewire deadlock.
H-M-H Mar 28, 2021
d019cc3
This happens all the time, warn -> trace.
H-M-H Mar 28, 2021
eeec921
Crop pipewire frames as necessary.
H-M-H Mar 28, 2021
0becafc
Add some error handling to recorder creation.
H-M-H Mar 28, 2021
018d5f2
Link pipewire issues in comments.
H-M-H Mar 28, 2021
23012ba
Wayland support is now optional and opt in.
H-M-H Mar 28, 2021
1c67a6c
Fix benchmark on wayland.
H-M-H Mar 29, 2021
47b353a
Disable capturing cursor under Wayland for now.
H-M-H Mar 29, 2021
cf6a632
Update some dependencies.
H-M-H Mar 29, 2021
fbf8334
First nvenc then mediafoundation.
H-M-H Mar 31, 2021
5376de2
Make passing around encoder options a bit nicer.
H-M-H Apr 1, 2021
1ae3111
Add option to toggle hwaccel on macOS and windows.
H-M-H Apr 1, 2021
136059d
Pass missing parameters.
H-M-H Apr 1, 2021
0fe98da
Set AVC profile to extended for videotoolbox.
H-M-H Apr 1, 2021
01e32d3
Fix benchmarks, add x264 benching.
H-M-H Apr 3, 2021
24c10ec
Scale down video more aggressively.
H-M-H Apr 3, 2021
2879d0c
Add Min to clarify things a bit.
H-M-H Apr 3, 2021
c1b624b
Style input range a bit.
H-M-H Apr 3, 2021
de1ab86
Make sure seek time is valid.
H-M-H Apr 3, 2021
dffe038
Add option to disable video.
H-M-H Apr 3, 2021
39735e3
Break this into two lines.
H-M-H Apr 3, 2021
f9749b8
Update Readme.
H-M-H Apr 3, 2021
929a46f
v0.11.0-rc1
H-M-H Apr 3, 2021
708b9c5
Limit video resolution to 4K.
H-M-H Apr 3, 2021
95df353
Make sure the video uses all available space.
H-M-H Apr 4, 2021
3ca6ab5
Hide canvas if video is playing.
H-M-H Apr 4, 2021
5bc9104
Only the video itself receives pointer events.
H-M-H Apr 4, 2021
7c698d6
Fix incorrect video sizing/positioning.
H-M-H Apr 4, 2021
c9443e2
Add option to set min pressure to generate.
H-M-H Apr 5, 2021
4b585cc
Add option to print bundled website.
H-M-H Apr 5, 2021
09ca77e
Add option to load custom html/css/js.
H-M-H Apr 5, 2021
fa06fde
Show pointerevents on canvas.
H-M-H Apr 4, 2021
dd97d9d
No event handling for canvas without webgl.
H-M-H Apr 5, 2021
e21848a
Only try to draw on canvas if webgl is initialized.
H-M-H Apr 5, 2021
1d88349
Reduce line size a litte.
H-M-H Apr 5, 2021
3cf5fdc
Add some explanation to webgl rendering.
H-M-H Apr 6, 2021
0b94b48
Only request video frames if document is visible.
H-M-H Apr 6, 2021
315ee42
Simplify seeking and remove faulty condition.
H-M-H Apr 6, 2021
d662ce6
Option to control how aggressive seeking should be.
H-M-H Apr 13, 2021
ea94df5
Restructure settings a little.
H-M-H Apr 13, 2021
f26c763
Add FUNDING.yml.
H-M-H Apr 13, 2021
f05dc16
Remove some dead code.
H-M-H Apr 13, 2021
17d8019
Typo.
H-M-H Apr 14, 2021
a5e3c89
Improve docs on Weylus as a Second Screen.
H-M-H Apr 14, 2021
d153613
Update dependencies in build instructions.
H-M-H Apr 14, 2021
a0ba840
Mention required minimum browser version.
H-M-H Apr 14, 2021
43cd9a2
Slightly increase padding.
H-M-H Apr 14, 2021
94659f9
Enable capturing cursor on Wayland
H-M-H Apr 14, 2021
624769d
Make sure to always display max resolution.
H-M-H Apr 14, 2021
99e2853
Max Video Resolution now does what it says.
H-M-H Apr 14, 2021
190bf6d
Update ffmpeg and libva.
H-M-H Apr 14, 2021
cc14bf1
Improve error message on video decoding error.
H-M-H Apr 14, 2021
a16aea7
v0.11.0-rc2
H-M-H Apr 14, 2021
b473bb1
Temporarily workaround cargo deb adding bad deps.
H-M-H Apr 15, 2021
1d424de
v0.11.0-rc3
H-M-H Apr 16, 2021
8b4cd4c
v0.11.0
H-M-H Apr 16, 2021
d60f6af
Fix and add nvenc benchmark(s).
H-M-H Apr 17, 2021
4ef5a88
Update nvenc options.
H-M-H Apr 17, 2021
adee0e4
Write log to stderr.
H-M-H Apr 17, 2021
8f85891
Update fltk.
H-M-H Apr 17, 2021
3ce6854
Typo.
H-M-H Apr 20, 2021
d80891f
Comment suggested options.
H-M-H Apr 26, 2021
7e9a6ef
Improve button handling for autopilot.
H-M-H May 4, 2021
c9f729c
v0.11.1
H-M-H May 7, 2021
ead293c
Safari/Webkit quirks to disable pinch zooming.
H-M-H May 8, 2021
8369bc9
Improve screen recording on macOS
H-M-H Jun 6, 2021
c3ad645
Fix input mapping for displays on macOS.
H-M-H Jun 6, 2021
3319178
Make cross compiling not entirely impossible.
H-M-H Jun 8, 2021
23c3904
Improve OS detection.
H-M-H Jun 8, 2021
3b0dfff
Fix Cross Compilation for MinGW64 on Linux
danielrutz Jun 10, 2021
39331d5
Accept the contributor's license
danielrutz Jun 11, 2021
647abab
Merge branch 'master' into cross-compile
danielrutz Jun 11, 2021
75557df
Use patched version of autopilot.
H-M-H Jun 14, 2021
e130fe0
Prevent video from getting stuck.
H-M-H Jun 20, 2021
d9a11f0
Move fps calculation to frame_timer.
H-M-H Jun 20, 2021
2fa9ec3
Reduce time for forceful seeking to 3 seconds.
H-M-H Jun 20, 2021
78e75d9
source_type may be unset, provide a default value
H-M-H Jul 8, 2021
4777080
Workaround a Safari/WebKit bug
H-M-H Jul 8, 2021
31ba11a
Update dependencies.
H-M-H Jul 9, 2021
4679d52
v0.11.2
H-M-H Jul 10, 2021
7671fd7
Add button to toggle fullscreen.
H-M-H Jul 31, 2021
27cf31e
No fullscreen for iOS/iPadOS.
H-M-H Jul 31, 2021
90b9634
Separate gui and server starting/stopping logic.
H-M-H Aug 3, 2021
1b8918c
Add energy saving checkbox.
H-M-H Aug 5, 2021
f669066
Make the login page a little less horrible.
H-M-H Aug 5, 2021
49db797
Energy saving off by default.
H-M-H Aug 5, 2021
fab90ba
Update Readme.
H-M-H Aug 12, 2021
22ce0cb
Allow proxying through https.
H-M-H Aug 19, 2021
02fbcd3
Add script to run Weylus with encryption on Linux.
H-M-H Aug 19, 2021
cda35b8
Debloat and update dependencies.
H-M-H Sep 7, 2021
b25abb8
Link against bcrypt on windows.
H-M-H Sep 7, 2021
a89b7f4
Improve testsrc.
H-M-H Sep 9, 2021
d289a94
Let the user set the uinput device name suffix.
H-M-H Sep 23, 2021
c7420e4
Improve CLI.
H-M-H Sep 23, 2021
350db6e
Add structured logging.
H-M-H Oct 2, 2021
165f373
Hopefully fix building on windows.
H-M-H Oct 2, 2021
8385b7d
Update node in Dockerfile.
H-M-H Oct 2, 2021
7fbe70b
Typo fix: disable -> disabled
Newbytee Oct 4, 2021
49090e9
Merge pull request #115 from Newbytee/patch-1
H-M-H Oct 4, 2021
1ee2908
Improve instructions for building.
H-M-H Oct 30, 2021
c724afc
Add docs on encryption.
H-M-H Oct 30, 2021
4e02b3d
Add note about VAAPI devices.
H-M-H Oct 30, 2021
2410f65
Add Encryption to TOC.
H-M-H Oct 30, 2021
bd6fb6a
Add notes for automation.
H-M-H Oct 30, 2021
dfa1737
Improve client name label in index.html.
H-M-H Oct 30, 2021
5989163
Fix some warnings.
H-M-H Oct 30, 2021
21bac81
Mention setting the log level for automation.
H-M-H Oct 30, 2021
ecfefaf
v0.11.3
H-M-H Oct 30, 2021
eb0a71c
Fix crash in ffmpeg logging.
H-M-H Oct 31, 2021
10a279b
v0.11.4
H-M-H Oct 31, 2021
4e3fda2
Force NV12 for AMD's Dimegrey Cavefish driver.
H-M-H Nov 2, 2021
e23d3b9
Don't link against va-glx as this is not needed.
H-M-H Nov 2, 2021
94816a4
Use WinAPI to simulate pointermovements
qdlmcfresh Nov 25, 2021
a21f5a7
Move windows implementation to own file
qdlmcfresh Nov 26, 2021
327375d
Use windows device only on windows
qdlmcfresh Nov 26, 2021
3b6e9f0
Use WindowsInput in websocket
qdlmcfresh Nov 26, 2021
dae725e
Working with multiple monitors
qdlmcfresh Nov 27, 2021
f2fad32
Additional dependencies
qdlmcfresh Nov 27, 2021
94c1baa
Remove unused imports
qdlmcfresh Nov 27, 2021
77f0d6d
Might build on linux and mac now
qdlmcfresh Nov 27, 2021
2937b2e
add missing geometry, geometry_offset in implementation CGDisplayCapt…
qdlmcfresh Nov 27, 2021
2a2c06f
Fix the capturable trait, add Geometry enum that is retruned by captu…
qdlmcfresh Nov 29, 2021
dbfd169
Add missing import for linux
qdlmcfresh Nov 29, 2021
c0bd199
unpack geometry_relative struct
qdlmcfresh Nov 29, 2021
3e5cbb3
Resolve review issues
qdlmcfresh Nov 29, 2021
d7f4dc2
Removed unused features
qdlmcfresh Nov 29, 2021
076d5b4
Dont ignore nonprimary events
qdlmcfresh Nov 29, 2021
bc34270
Add Error wrapper for Captrs
qdlmcfresh Nov 29, 2021
05da252
Remove unneccesary clone
qdlmcfresh Nov 29, 2021
bcabb77
CaptrsRecorder::new returns result
qdlmcfresh Nov 29, 2021
edd5f3a
dont unwrap here
qdlmcfresh Nov 29, 2021
4b340de
Add myself to contributors
qdlmcfresh Nov 30, 2021
0f9362e
add _ to error variable to prevent compilerwarning
qdlmcfresh Dec 2, 2021
2f3064b
working touchinput via InjectSyntheticPointerInput
qdlmcfresh Dec 2, 2021
023af02
Simulate Mouse via WinAPI
qdlmcfresh Dec 7, 2021
5c56128
Remove prints
qdlmcfresh Dec 7, 2021
c716d47
Fix pressure factor again
qdlmcfresh Dec 9, 2021
4f3e517
Update dependencies.
H-M-H Dec 9, 2021
ca26f9d
Use latest cmake inside docker container.
H-M-H Dec 9, 2021
67500d8
Upload prebuilt ffmpeg, only run tsc if necessary.
H-M-H Dec 12, 2021
574c37a
POINTER_FLAG_INCONTACT only with primary button
qdlmcfresh Dec 14, 2021
9484e24
Merge branch 'H-M-H:master' into stylus_windows
qdlmcfresh Jan 5, 2022
b47e5f2
Update ffmpeg, libva, rust deps.
H-M-H Jan 17, 2022
9afbf24
Fix windows ffmpeg patch.
H-M-H Jan 18, 2022
973bc2c
Fix another windows patch.
H-M-H Jan 18, 2022
45af147
Try building for the current version of macOS.
H-M-H Jan 19, 2022
33cf5f1
micros -> millis.
H-M-H Jan 21, 2022
7cd2be6
Try fixing windows build.
H-M-H Feb 21, 2022
2711b5a
Try fixing Windows build again...
H-M-H Mar 22, 2022
cc94ea0
Update deps.
H-M-H Mar 22, 2022
dc12937
Sort windows by their (lowercase) name.
H-M-H May 6, 2022
d30e2ee
Fix missing mut.
H-M-H May 6, 2022
8c5ad71
Add note about disabling raw input for osu! to FAQ
H-M-H May 6, 2022
55301e0
Update gstreamer, try to handle RGBx (WIP).
H-M-H May 8, 2022
d399fb4
Add RBG0 to PixelProvider.
H-M-H May 8, 2022
f6c090c
Change linking order of C libs.
H-M-H May 20, 2022
9f2130b
Update libva.
H-M-H May 21, 2022
6cc4c23
Fix linking order for static build.
H-M-H May 21, 2022
5fa3317
Update docker image.
H-M-H May 21, 2022
b31f26b
update some deps
schctl May 24, 2022
b5b5942
update `tracing-subscriber`
schctl May 24, 2022
0267cf9
Merge pull request #159 from schctl/master
H-M-H May 25, 2022
c879ee0
Set WMClass.
H-M-H May 25, 2022
d329a99
fix a few clippy lints
schctl May 28, 2022
4958268
Merge remote-tracking branch 'upstream/master' into stylus_windows
qdlmcfresh May 28, 2022
f0adf61
Update cargo.lock
qdlmcfresh May 28, 2022
34dd80e
Integrate changes by @Ph-Fr-One to fix multitouch
qdlmcfresh May 28, 2022
8e084f4
run rustfmt
schctl May 28, 2022
dc6b287
sort dependencies alphabetically
schctl May 31, 2022
b249d82
update rust edition to 2021
schctl May 31, 2022
b169a6b
Merge pull request #161 from schctl/cleanup
H-M-H Jun 8, 2022
61a950a
Set contenteditable for <main> element.
H-M-H Aug 2, 2022
67b5f30
Update ffmpeg and libva.
H-M-H Aug 2, 2022
dfbefba
Delete obsolete patch for ffmpeg + x264.
H-M-H Aug 2, 2022
76ed983
Update some crates.
H-M-H Aug 2, 2022
3829050
Add Dockerfile to build on Alpine.
H-M-H Aug 2, 2022
d833fac
Drop support to build on windows natively.
H-M-H Aug 2, 2022
47874f7
Fix caching.
H-M-H Aug 2, 2022
e6982f1
remove unnecessary extra thread
schctl Jun 22, 2022
d1c501d
fix a few lints and a typo
schctl Jun 22, 2022
237461d
remove a lot of unnecessary unwraps
schctl Jun 30, 2022
a04e537
replace `pnet` with `pnet_datalink`
schctl Jun 22, 2022
8681be6
use type aliases in some places in websocket
schctl Jul 13, 2022
a790191
fix mistake in warning log
schctl Jul 18, 2022
afdf7fe
Build Alpine version with musl.
H-M-H Aug 3, 2022
157c525
Add tar supporting the --posix flag to Alpine img.
H-M-H Aug 3, 2022
b6d980d
Bump websocket from 0.26.2 to 0.26.5
dependabot[bot] Aug 6, 2022
6411ba4
Merge pull request #175 from H-M-H/dependabot/cargo/websocket-0.26.5
H-M-H Aug 6, 2022
b332ec3
Merge remote-tracking branch 'upstream/master' into stylus_windows
qdlmcfresh Sep 22, 2022
1d0c917
Add fedora command to install required libs
erentar Feb 2, 2023
9bf2571
fix scroll direction problems in uinput
OmegaRogue Mar 16, 2023
dec0909
Always render square QR code so it can be read
scribblemaniac Aug 5, 2023
d92867e
Create helper window in main thread.
michaelcadilhac Sep 9, 2024
0050012
Fix handling of KeyboardEvents.
H-M-H Apr 6, 2023
80c1e27
Sanitize pressure of pen.
H-M-H Apr 6, 2023
0ae4c8d
Debian Stretch -> Buster for Docker.
H-M-H Nov 25, 2023
0ca094c
Update dependencies.
H-M-H Nov 25, 2023
3a131f4
Fix const in signature of `write_video_packet`.
H-M-H Sep 10, 2024
14d8002
Remove cargo deb workaround
H-M-H Sep 12, 2024
0b94934
Add some signal handling, improve shutting down.
H-M-H Sep 13, 2024
06b1f24
Improve signal handling.
H-M-H Sep 24, 2024
cd3d91f
Replace websockets with fastwebsockets.
H-M-H Sep 24, 2024
9e5376c
Update various dependencies.
H-M-H Sep 24, 2024
0ee8be2
Update GitHub actions.
H-M-H Sep 24, 2024
6bd33d9
Change nvenc preset to p1.
H-M-H Sep 24, 2024
e1c0527
Handle XFixesGetCursorImage returning NULL.
H-M-H Sep 24, 2024
f06a564
Link crt (musl) dynamically on Alpine.
H-M-H Sep 24, 2024
b50f151
Improve nvenc options.
H-M-H Sep 24, 2024
c3e6595
Merge branch 'michaelcadilhac-master' into websocket_rework_2
H-M-H Sep 24, 2024
b2687b8
Merge branch 'OmegaRogue-master' into websocket_rework_2
H-M-H Sep 24, 2024
6814a55
Merge branch 'scribblemaniac-fix-qr-code' into websocket_rework_2
H-M-H Sep 24, 2024
5db9cc6
Merge branch 'erentar-master' into websocket_rework_2
H-M-H Sep 24, 2024
6b60ec8
Merge branch 'qdlmcfresh-stylus_windows2' into websocket_rework_2
H-M-H Sep 24, 2024
0ab42d5
Remove websocket port from gui.
H-M-H Sep 24, 2024
4c5dca5
Replace structopt with clap derive.
H-M-H Sep 25, 2024
2312881
Increase smoothness of pointer events.
H-M-H Sep 25, 2024
a5c6be5
Add theme selection and auto resize qr code.
H-M-H Sep 25, 2024
461a73c
Update some more deps.
H-M-H Sep 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .eslintrc.json

This file was deleted.

2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: H-M-H
liberapay: HMH
171 changes: 110 additions & 61 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,89 +9,138 @@ on:
branches: [ master ]

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
include:
- os: ubuntu-latest
install-deps: |
sudo apt-get install -y libx11-dev libxext-dev libxft-dev libxinerama-dev libxcursor-dev libxrender-dev libxfixes-dev libgl1-mesa-dev libglu1-mesa-dev libxtst-dev nasm libstdc++-6-dev gcc-6 g++-6
sudo apt-get remove gcc-7 g++-7 gcc-9 g++-9
sudo update-alternatives --install /usr/bin/gcc gcc $(which gcc-6) 100
sudo update-alternatives --set gcc $(which gcc-6)
sudo update-alternatives --install /usr/bin/g++ g++ $(which g++-6) 100
sudo update-alternatives --set g++ $(which g++-6)
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 100
sudo update-alternatives --set cc /usr/bin/gcc
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 100
sudo update-alternatives --set c++ /usr/bin/g++
cargo install cargo-deb
build-cmd: cargo deb
package-files: |
target/release/linux.zip
target/debian/Weylus*.deb
exec-file: target/release/linux.zip
pkg-cmd: cd target/release/ && zip linux.zip weylus

- os: macOS-latest
install-deps: |
npm install -g typescript
brew install nasm
cargo install cargo-bundle
build-cmd: cargo bundle --release
package-files: target/release/bundle/osx/macOS.zip
exec-file: target/release/bundle/osx/macOS.zip
pkg-cmd: cd target/release/bundle/osx/ && zip -r macOS.zip Weylus.app
build-docker:
runs-on: ubuntu-latest
container: docker://hhmhh/weylus_build:latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: deps/dist*
key: ${{ runner.os }}-deps-${{ hashFiles('deps/*') }}
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
- name: Build
run: ./docker_build.sh
shell: bash
- name: Artifacts1
uses: actions/upload-artifact@v4
with:
name: linux
path: packages/weylus-linux.zip
- name: Artifacts2
uses: actions/upload-artifact@v4
with:
name: linux-deb
path: packages/Weylus*.deb
- name: Artifacts3
uses: actions/upload-artifact@v4
with:
name: windows
path: packages/weylus-windows.zip
- name: Publish
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
packages/weylus-linux.zip
packages/Weylus*.deb
packages/weylus-windows.zip
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- os: windows-latest
install-deps: |
curl -LO https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/win64/nasm-2.14.02-win64.zip
7z x nasm-2.14.02-win64.zip
cp nasm-2.14.02/nasm.exe /usr/bin/nasm.exe
npm install typescript
build-cmd: cargo build --release --verbose
package-files: target/release/Windows.zip
exec-file: target/release/Windows.zip
pkg-cmd: cd target/release/ && 7z a Windows.zip weylus.exe
build-docker-alpine:
runs-on: ubuntu-latest
container: docker://hhmhh/weylus_build_alpine:latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: deps/dist*
key: ${{ runner.os }}-alpine-deps-${{ hashFiles('deps/*') }}
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-alpine-cargo-${{ hashFiles('Cargo.lock') }}
- name: Build
run: RUSTFLAGS='-C target-feature=-crt-static' cargo build --release && cd target/release && tar czf weylus-linux-alpine-musl.tar.gz weylus
shell: bash
- name: Artifacts1
uses: actions/upload-artifact@v4
with:
name: linux-alpine-musl
path: target/release/weylus-linux-alpine-musl.tar.gz
- name: Publish
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
target/release/weylus-linux-alpine-musl.tar.gz
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-macos:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: deps/dist
key: ${{ runner.os }}-deps-${{ hashFiles('deps/*') }}-2
- uses: actions/cache@v2
key: ${{ runner.os }}-deps-${{ hashFiles('deps/*') }}
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}-2
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
- name: Download deps
run: ${{ matrix.install-deps }}
run: |
npm install -g typescript
brew install nasm
cargo install cargo-bundle
shell: bash
- uses: ilammy/msvc-dev-cmd@v1
- name: Build
run: ${{ matrix.build-cmd }}
shell: bash
# run: MACOSX_DEPLOYMENT_TARGET=10.13 cargo bundle --release
run: cargo bundle --release
- name: Package
run: ${{ matrix.pkg-cmd }}
run: cd target/release/bundle/osx/ && zip -r macOS.zip Weylus.app
- name: Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ runner.os }}
path: |
${{ matrix.exec-file }}
target/release/bundle/osx/macOS.zip
- name: ArtifactsDebug
if: failure()
uses: actions/upload-artifact@v4
with:
name: ${{ runner.os }}-ffbuild
path: |
deps/ffmpeg/ffbuild
- name: Debug via SSH
if: failure()
uses: luchihoratiu/debug-via-ssh@main
with:
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
SSH_PASS: ${{ secrets.SSH_PASS }}
NGROK_REGION: eu
- name: Publish
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
${{ matrix.package-files }}
target/release/bundle/osx/macOS.zip
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
/target
/deps/ffmpeg
/deps/x264
/deps/dist
/deps/dist*
/deps/nv-codec-headers
/deps/libva
c_helper/target
c_helper/Cargo.lock
*.js
*.js.map
*.tar.gz
5 changes: 4 additions & 1 deletion CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ the list of contributors below.
List of Contributors:

**************************

Robert Schroll
Daniel Rutz
Philipp Urlbauer
OmegaRogue
**************************

3-Clause BSD License
Expand Down
Loading