Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
github_28344065
scrcpy
提交
c0b65b14
S
scrcpy
项目概览
github_28344065
/
scrcpy
与 Fork 源项目一致
从无法访问的项目Fork
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
scrcpy
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
c0b65b14
编写于
2月 10, 2019
作者:
R
Romain Vimont
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into dev
上级
b23cacfc
eea478b9
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
40 addition
and
5 deletion
+40
-5
Makefile.CrossWindows
Makefile.CrossWindows
+1
-1
app/tests/test_control_event_serialize.c
app/tests/test_control_event_serialize.c
+4
-4
release.sh
release.sh
+35
-0
未找到文件。
Makefile.CrossWindows
浏览文件 @
c0b65b14
...
...
@@ -34,7 +34,7 @@ WIN32_TARGET := $(WIN32_TARGET_DIR)-$(VERSION).zip
WIN64_TARGET
:=
$(WIN64_TARGET_DIR)
-
$(VERSION)
.zip
release
:
clean zip-win32 zip-win64 sums
@
echo
"
Release created in
$(DIST)
/.
"
@
echo
"
Windows archives generated in
$(DIST)
/
"
clean
:
$(GRADLE)
clean
...
...
app/tests/test_control_event_serialize.c
浏览文件 @
c0b65b14
...
...
@@ -87,13 +87,13 @@ static void test_serialize_mouse_event(void) {
unsigned
char
buf
[
SERIALIZED_EVENT_MAX_SIZE
];
int
size
=
control_event_serialize
(
&
event
,
buf
);
assert
(
size
==
1
4
);
assert
(
size
==
1
8
);
const
unsigned
char
expected
[]
=
{
0x02
,
// CONTROL_EVENT_TYPE_MOUSE
0x00
,
// AKEY_EVENT_ACTION_DOWN
0x00
,
0x00
,
0x00
,
0x01
,
// AMOTION_EVENT_BUTTON_PRIMARY
0x0
1
,
0x04
,
0x04
,
0x02
,
// 260 1026
0x0
0
,
0x00
,
0x01
,
0x04
,
0x00
,
0x00
,
0x04
,
0x02
,
// 260 1026
0x04
,
0x38
,
0x07
,
0x80
,
// 1080 1920
};
assert
(
!
memcmp
(
buf
,
expected
,
sizeof
(
expected
)));
...
...
@@ -120,11 +120,11 @@ static void test_serialize_scroll_event(void) {
unsigned
char
buf
[
SERIALIZED_EVENT_MAX_SIZE
];
int
size
=
control_event_serialize
(
&
event
,
buf
);
assert
(
size
==
17
);
assert
(
size
==
21
);
const
unsigned
char
expected
[]
=
{
0x03
,
// CONTROL_EVENT_TYPE_SCROLL
0x0
1
,
0x04
,
0x04
,
0x02
,
// 260 1026
0x0
0
,
0x00
,
0x01
,
0x04
,
0x00
,
0x00
,
0x04
,
0x02
,
// 260 1026
0x04
,
0x38
,
0x07
,
0x80
,
// 1080 1920
0x00
,
0x00
,
0x00
,
0x01
,
// 1
0xFF
,
0xFF
,
0xFF
,
0xFF
,
// -1
...
...
release.sh
0 → 100755
浏览文件 @
c0b65b14
#!/bin/bash
set
-e
# build and test locally
BUILDDIR
=
build_release
rm
-rf
"
$BUILDDIR
"
meson
"
$BUILDDIR
"
--buildtype
release
--strip
-Db_lto
=
true
cd
"
$BUILDDIR
"
ninja
ninja
test
cd
-
# build Windows releases
make
-f
Makefile.CrossWindows
# the generated server must be the same everywhere
cmp
"
$BUILDDIR
/server/scrcpy-server.jar"
dist/scrcpy-win32/scrcpy-server.jar
cmp
"
$BUILDDIR
/server/scrcpy-server.jar"
dist/scrcpy-win64/scrcpy-server.jar
# get version name
TAG
=
$(
git describe
--tags
--always
)
# create release directory
mkdir
-p
"release-
$TAG
"
cp
"
$BUILDDIR
/server/scrcpy-server.jar"
"release-
$TAG
/scrcpy-server-
$TAG
.jar"
cp
"dist/scrcpy-win32-
$TAG
.zip"
"release-
$TAG
/"
cp
"dist/scrcpy-win64-
$TAG
.zip"
"release-
$TAG
/"
# generate checksums
cd
"release-
$TAG
"
sha256sum
"scrcpy-server-
$TAG
.jar"
\
"scrcpy-win32-
$TAG
.zip"
\
"scrcpy-win64-
$TAG
.zip"
>
SHA256SUMS.txt
echo
"Release generated in release-
$TAG
/"
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录