forked from rustdesk/rustdesk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'rustdesk:master' into master
- Loading branch information
Showing
478 changed files
with
48,131 additions
and
15,923 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,8 +1,14 @@ | ||
[target.x86_64-pc-windows-msvc] | ||
rustflags = ["-Ctarget-feature=+crt-static"] | ||
[target.i686-pc-windows-msvc] | ||
rustflags = ["-Ctarget-feature=+crt-static"] | ||
rustflags = ["-C", "target-feature=+crt-static", "-C", "link-args=/NODEFAULTLIB:MSVCRT"] | ||
[target.'cfg(target_os="macos")'] | ||
rustflags = [ | ||
"-C", "link-args=-sectcreate __CGPreLoginApp __cgpreloginapp /dev/null", | ||
] | ||
#[target.'cfg(target_os="linux")'] | ||
# glibc-static required, this may fix https://github.com/rustdesk/rustdesk/issues/9103, but I do not want this big change | ||
# this is unlikely to help also, because the other so files still use libc dynamically | ||
#rustflags = [ | ||
# "-C", "link-args=-Wl,-Bstatic -lc -Wl,-Bdynamic" | ||
#] |
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
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
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
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,37 @@ | ||
name: Clear cache | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
permissions: | ||
actions: write | ||
|
||
jobs: | ||
clear-cache: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clear cache | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
console.log("About to clear") | ||
const caches = await github.rest.actions.getActionsCacheList({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
}) | ||
for (const cache of caches.data.actions_caches) { | ||
console.log(cache) | ||
github.rest.actions.deleteActionsCacheById({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
cache_id: cache.id, | ||
}) | ||
} | ||
console.log("Clear completed") | ||
- name: Purge cache # Above seems not clear thouroughly, so add this to double clear | ||
uses: MyAlbum/purge-cache@v2 | ||
with: | ||
accessed: true # Purge caches by their last accessed time (default) | ||
created: false # Purge caches by their created time (default) | ||
max-age: 1 # in seconds |
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,39 @@ | ||
name: Fdroid version file generation | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
- '[0-9]+.[0-9]+.[0-9]+' | ||
- 'v[0-9]+.[0-9]+.[0-9]+-[0-9]+' | ||
- '[0-9]+.[0-9]+.[0-9]+-[0-9]+' | ||
|
||
jobs: | ||
# https://gitlab.com/fdroid/fdroiddata/-/blob/master/metadata/com.carriez.flutter_hbb.yml | ||
# Finds latest release and transforms F-Droid version code from version as follows: | ||
# X.Y.Z-A => X * 1e6 + Y * 1e4 + Z * 1e2 + A | ||
update-fdroid-version-file: | ||
name: Publish RustDesk version file for F-Droid updater | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Generate RustDesk version file | ||
run: | | ||
if [ "${GITHUB_REF_TYPE}" = "tag" ]; then | ||
UPSTREAM_VERNAME="${GITHUB_REF##refs/tags/}" | ||
UPSTREAM_VERNAME="${UPSTREAM_VERNAME##v}" | ||
else | ||
UPSTREAM_VERNAME="$(curl https://api.github.com/repos/rustdesk/rustdesk/releases/latest | jq -r .tag_name | sed 's/^v//')" | ||
fi | ||
UPSTREAM_VERCODE="$(echo "$UPSTREAM_VERNAME" | tr '.' ' ' | tr '-' ' ' | while read -r MAJOR MINOR PATCH REV; do [ -z "$MAJOR" ] && MAJOR=0; [ -z "$MINOR" ] && MINOR=0; [ -z "$PATCH" ] && PATCH=0; [ -z "$REV" ] && REV=0; echo "$(( 1000000 * $MAJOR + 10000 * $MINOR + 100 * $PATCH + $REV ))"; done)" | ||
echo "versionName=$UPSTREAM_VERNAME" > rustdesk-version.txt | ||
echo "versionCode=$UPSTREAM_VERCODE" >> rustdesk-version.txt | ||
shell: bash | ||
|
||
- name: Publish RustDesk version file | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
prerelease: true | ||
tag_name: "fdroid-version" | ||
files: | | ||
./rustdesk-version.txt |
Oops, something went wrong.