Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rustdesk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李朝发
rustdesk
Commits
d01eb70b
Commit
d01eb70b
authored
May 14, 2022
by
rustdesk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more build
parent
1cb0ad7d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
102 additions
and
7 deletions
+102
-7
config.toml
.cargo/config.toml
+5
-1
.gitignore
.gitignore
+10
-0
Cargo.lock
Cargo.lock
+0
-1
Cargo.toml
Cargo.toml
+0
-4
postinst
DEBIAN/postinst
+5
-1
lang.py
lang.py
+46
-0
manifest.xml
manifest.xml
+36
-0
No files found.
.cargo/config.toml
View file @
d01eb70b
[target.x86_64-pc-windows-msvc]
rustflags
=
["-Ctarget-feature=+crt-static"]
[target.i686-pc-windows-msvc]
rustflags
=
["-Ctarget-feature=+crt-static"]
[target.'cfg(target_os="macos")']
rustflags
=
[
"-C"
,
"link-args=-sectcreate __CGPreLoginApp __cgpreloginapp /dev/null"
,
]
\ No newline at end of file
]
.gitignore
View file @
d01eb70b
...
...
@@ -7,5 +7,15 @@ extractor
__pycache__
src/version.rs
*dmg
*exe
*tgz
*lib
cert.pfx
flutter_hbb
*.bak
*png
*svg
*jpg
web_hbb
sciter.dll
**pdb
Cargo.lock
View file @
d01eb70b
...
...
@@ -4007,7 +4007,6 @@ dependencies = [
"tray-item",
"trayicon",
"uuid",
"virtual_display",
"whoami",
"winapi 0.3.9",
"windows-service",
...
...
Cargo.toml
View file @
d01eb70b
...
...
@@ -30,10 +30,6 @@ default = ["use_dasp"]
whoami
=
"1.2"
scrap
=
{
path
=
"libs/scrap"
}
hbb_common
=
{
path
=
"libs/hbb_common"
}
enigo
=
{
path
=
"libs/enigo"
}
clipboard
=
{
path
=
"libs/clipboard"
}
virtual_display
=
{
path
=
"libs/virtual_display"
}
sys-locale
=
"0.2"
serde_derive
=
"1.0"
serde
=
"1.0"
serde_json
=
"1.0"
...
...
DEBIAN/postinst
View file @
d01eb70b
...
...
@@ -10,7 +10,11 @@ if [ "$1" = configure ]; then
if
[
-e
/etc/systemd/system/rustdesk.service
]
;
then
rm
/etc/systemd/system/rustdesk.service
fi
sudo
-H
pip3
install
pynput
version
=
$(
python3
-V
2>&1 |
grep
-Po
'(?<=Python )(.+)'
)
parsedVersion
=
$(
echo
"
${
version
//./
}
"
)
if
[[
"
$parsedVersion
"
-gt
"360"
]]
;
then
sudo
-H
pip3
install
pynput
fi
cp
/usr/share/rustdesk/files/systemd/rustdesk.service /etc/systemd/system/rustdesk.service
systemctl daemon-reload
systemctl
enable
rustdesk
...
...
lang.py
0 → 100644
View file @
d01eb70b
#!/usr/bin/env python3
# Based on 'cn.rs', generate entries that are not completed in other languages
import
os
import
glob
def
get_lang
(
lang
):
out
=
{}
for
ln
in
open
(
'./src/lang/
%
s.rs'
%
lang
):
ln
=
ln
.
strip
()
if
ln
.
startswith
(
'("'
):
k
,
v
=
line_split
(
ln
)
out
[
k
]
=
v
return
out
def
line_split
(
line
):
toks
=
line
.
split
(
'", "'
)
assert
(
len
(
toks
)
==
2
)
k
=
toks
[
0
][
2
:]
v
=
toks
[
1
][:
-
3
]
return
k
,
v
def
main
():
for
fn
in
glob
.
glob
(
'./src/lang/*'
):
lang
=
os
.
path
.
basename
(
fn
)[:
-
3
]
if
lang
in
[
'en'
,
'cn'
]:
continue
fw
=
open
(
"
%
s.rs.gen"
%
lang
,
"wb+"
)
dict
=
get_lang
(
lang
)
for
line
in
open
(
'./src/lang/cn.rs'
):
line_strip
=
line
.
strip
()
if
line_strip
.
startswith
(
'("'
):
k
,
v
=
line_split
(
line_strip
)
if
k
in
dict
:
line
=
line
.
replace
(
v
,
dict
[
k
])
else
:
line
=
line
.
replace
(
v
,
""
)
fw
.
write
(
line
.
encode
())
else
:
fw
.
write
(
line
.
encode
())
fw
.
close
()
os
.
remove
(
"./src/lang/
%
s.rs"
%
lang
)
os
.
rename
(
fw
.
name
,
"./src/lang/
%
s.rs"
%
lang
)
main
()
\ No newline at end of file
manifest.xml
0 → 100644
View file @
d01eb70b
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly
xmlns=
"urn:schemas-microsoft-com:asm.v1"
manifestVersion=
"1.0"
>
<asmv3:application
xmlns:asmv3=
"urn:schemas-microsoft-com:asm.v3"
>
<asmv3:windowsSettings
xmlns=
"http://schemas.microsoft.com/SMI/2005/WindowsSettings"
>
<dpiAware
xmlns=
"http://schemas.microsoft.com/SMI/2005/WindowsSettings"
>
true/PM
</dpiAware>
<dpiAwareness
xmlns=
"http://schemas.microsoft.com/SMI/2016/WindowsSettings"
>
PerMonitorV2, PerMonitor
</dpiAwareness>
</asmv3:windowsSettings>
</asmv3:application>
<compatibility
xmlns=
"urn:schemas-microsoft-com:compatibility.v1"
>
<application>
<!-- Windows 10 -->
<supportedOS
Id=
"{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"
/>
<!-- Windows 8.1 -->
<supportedOS
Id=
"{1f676c76-80e1-4239-95bb-83d0f6d0da78}"
/>
<!-- Windows Vista -->
<supportedOS
Id=
"{e2011457-1546-43c5-a5fe-008deee3d3f0}"
/>
<!-- Windows 7 -->
<supportedOS
Id=
"{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"
/>
<!-- Windows 8 -->
<supportedOS
Id=
"{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"
/>
</application>
</compatibility>
<dependency>
<dependentAssembly>
<assemblyIdentity
type=
"win32"
name=
"Microsoft.Windows.Common-Controls"
version=
"6.0.0.0"
processorArchitecture=
"*"
publicKeyToken=
"6595b64144ccf1df"
language=
"*"
/>
</dependentAssembly>
</dependency>
</assembly>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment