Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
cd113c9d
F
Ffmpeg
项目概览
小白菜888
/
Ffmpeg
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Ffmpeg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
cd113c9d
编写于
2月 25, 2018
作者:
M
Matt Oliver
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
projects: Update for recent upstream merge.
上级
6de2039e
变更
10
显示空白变更内容
内联
并排
Showing
10 changed file
with
46 addition
and
4 deletion
+46
-4
SMP/config.asm
SMP/config.asm
+10
-0
SMP/config.h
SMP/config.h
+10
-0
SMP/libavcodec.vcxproj
SMP/libavcodec.vcxproj
+1
-0
SMP/libavcodec.vcxproj.filters
SMP/libavcodec.vcxproj.filters
+3
-0
SMP/libavformat.def
SMP/libavformat.def
+3
-0
SMP/libavformat.vcxproj
SMP/libavformat.vcxproj
+2
-0
SMP/libavformat.vcxproj.filters
SMP/libavformat.vcxproj.filters
+10
-1
SMP/libavformat/demuxer_list.c
SMP/libavformat/demuxer_list.c
+2
-0
SMP/libavformat/muxer_list.c
SMP/libavformat/muxer_list.c
+2
-0
SMP/project_get_dependencies.bat
SMP/project_get_dependencies.bat
+3
-3
未找到文件。
SMP/config.asm
浏览文件 @
cd113c9d
...
@@ -452,6 +452,7 @@
...
@@ -452,6 +452,7 @@
%define CONFIG_LIBBS2B 0
%define CONFIG_LIBBS2B 0
%define CONFIG_LIBCACA 0
%define CONFIG_LIBCACA 0
%define CONFIG_LIBCELT 0
%define CONFIG_LIBCELT 0
%define CONFIG_LIBCODEC2 0
%define CONFIG_LIBDC1394 0
%define CONFIG_LIBDC1394 0
%define CONFIG_LIBDRM 0
%define CONFIG_LIBDRM 0
%define CONFIG_LIBFLITE 0
%define CONFIG_LIBFLITE 0
...
@@ -1166,6 +1167,7 @@
...
@@ -1166,6 +1167,7 @@
%define CONFIG_QDMC_AT_DECODER 0
%define CONFIG_QDMC_AT_DECODER 0
%define CONFIG_QDM2_AT_DECODER 0
%define CONFIG_QDM2_AT_DECODER 0
%define CONFIG_LIBCELT_DECODER 0
%define CONFIG_LIBCELT_DECODER 0
%define CONFIG_LIBCODEC2_DECODER 0
%define CONFIG_LIBFDK_AAC_DECODER 0
%define CONFIG_LIBFDK_AAC_DECODER 0
%define CONFIG_LIBGSM_DECODER 0
%define CONFIG_LIBGSM_DECODER 0
%define CONFIG_LIBGSM_MS_DECODER 0
%define CONFIG_LIBGSM_MS_DECODER 0
...
@@ -1355,6 +1357,7 @@
...
@@ -1355,6 +1357,7 @@
%define CONFIG_ILBC_AT_ENCODER 0
%define CONFIG_ILBC_AT_ENCODER 0
%define CONFIG_PCM_ALAW_AT_ENCODER 0
%define CONFIG_PCM_ALAW_AT_ENCODER 0
%define CONFIG_PCM_MULAW_AT_ENCODER 0
%define CONFIG_PCM_MULAW_AT_ENCODER 0
%define CONFIG_LIBCODEC2_ENCODER 0
%define CONFIG_LIBFDK_AAC_ENCODER 0
%define CONFIG_LIBFDK_AAC_ENCODER 0
%define CONFIG_LIBGSM_ENCODER 0
%define CONFIG_LIBGSM_ENCODER 0
%define CONFIG_LIBGSM_MS_ENCODER 0
%define CONFIG_LIBGSM_MS_ENCODER 0
...
@@ -1423,6 +1426,8 @@
...
@@ -1423,6 +1426,8 @@
%define CONFIG_HEVC_VAAPI_HWACCEL 0
%define CONFIG_HEVC_VAAPI_HWACCEL 0
%define CONFIG_HEVC_VDPAU_HWACCEL 0
%define CONFIG_HEVC_VDPAU_HWACCEL 0
%define CONFIG_HEVC_VIDEOTOOLBOX_HWACCEL 0
%define CONFIG_HEVC_VIDEOTOOLBOX_HWACCEL 0
%define CONFIG_MJPEG_NVDEC_HWACCEL 1
%define CONFIG_MJPEG_VAAPI_HWACCEL 0
%define CONFIG_MPEG1_NVDEC_HWACCEL 1
%define CONFIG_MPEG1_NVDEC_HWACCEL 1
%define CONFIG_MPEG1_VDPAU_HWACCEL 0
%define CONFIG_MPEG1_VDPAU_HWACCEL 0
%define CONFIG_MPEG1_VIDEOTOOLBOX_HWACCEL 0
%define CONFIG_MPEG1_VIDEOTOOLBOX_HWACCEL 0
...
@@ -1499,6 +1504,7 @@
...
@@ -1499,6 +1504,7 @@
%define CONFIG_VP9_PARSER 1
%define CONFIG_VP9_PARSER 1
%define CONFIG_XMA_PARSER 1
%define CONFIG_XMA_PARSER 1
%define CONFIG_ALSA_INDEV 0
%define CONFIG_ALSA_INDEV 0
%define CONFIG_ANDROID_CAMERA_INDEV 0
%define CONFIG_AVFOUNDATION_INDEV 0
%define CONFIG_AVFOUNDATION_INDEV 0
%define CONFIG_BKTR_INDEV 0
%define CONFIG_BKTR_INDEV 0
%define CONFIG_DECKLINK_INDEV 0
%define CONFIG_DECKLINK_INDEV 0
...
@@ -1941,6 +1947,8 @@
...
@@ -1941,6 +1947,8 @@
%define CONFIG_CDG_DEMUXER 1
%define CONFIG_CDG_DEMUXER 1
%define CONFIG_CDXL_DEMUXER 1
%define CONFIG_CDXL_DEMUXER 1
%define CONFIG_CINE_DEMUXER 1
%define CONFIG_CINE_DEMUXER 1
%define CONFIG_CODEC2_DEMUXER 1
%define CONFIG_CODEC2RAW_DEMUXER 1
%define CONFIG_CONCAT_DEMUXER 1
%define CONFIG_CONCAT_DEMUXER 1
%define CONFIG_DASH_DEMUXER 1
%define CONFIG_DASH_DEMUXER 1
%define CONFIG_DATA_DEMUXER 1
%define CONFIG_DATA_DEMUXER 1
...
@@ -2200,6 +2208,8 @@
...
@@ -2200,6 +2208,8 @@
%define CONFIG_BIT_MUXER 1
%define CONFIG_BIT_MUXER 1
%define CONFIG_CAF_MUXER 1
%define CONFIG_CAF_MUXER 1
%define CONFIG_CAVSVIDEO_MUXER 1
%define CONFIG_CAVSVIDEO_MUXER 1
%define CONFIG_CODEC2_MUXER 1
%define CONFIG_CODEC2RAW_MUXER 1
%define CONFIG_CRC_MUXER 1
%define CONFIG_CRC_MUXER 1
%define CONFIG_DASH_MUXER 1
%define CONFIG_DASH_MUXER 1
%define CONFIG_DATA_MUXER 1
%define CONFIG_DATA_MUXER 1
...
...
SMP/config.h
浏览文件 @
cd113c9d
...
@@ -502,6 +502,7 @@
...
@@ -502,6 +502,7 @@
#define CONFIG_LIBBS2B 0
#define CONFIG_LIBBS2B 0
#define CONFIG_LIBCACA 0
#define CONFIG_LIBCACA 0
#define CONFIG_LIBCELT 0
#define CONFIG_LIBCELT 0
#define CONFIG_LIBCODEC2 0
#define CONFIG_LIBDC1394 0
#define CONFIG_LIBDC1394 0
#define CONFIG_LIBDRM 0
#define CONFIG_LIBDRM 0
#define CONFIG_LIBFLITE 0
#define CONFIG_LIBFLITE 0
...
@@ -1231,6 +1232,7 @@
...
@@ -1231,6 +1232,7 @@
#define CONFIG_QDMC_AT_DECODER 0
#define CONFIG_QDMC_AT_DECODER 0
#define CONFIG_QDM2_AT_DECODER 0
#define CONFIG_QDM2_AT_DECODER 0
#define CONFIG_LIBCELT_DECODER 0
#define CONFIG_LIBCELT_DECODER 0
#define CONFIG_LIBCODEC2_DECODER 0
#define CONFIG_LIBFDK_AAC_DECODER 0
#define CONFIG_LIBFDK_AAC_DECODER 0
#define CONFIG_LIBGSM_DECODER 0
#define CONFIG_LIBGSM_DECODER 0
#define CONFIG_LIBGSM_MS_DECODER 0
#define CONFIG_LIBGSM_MS_DECODER 0
...
@@ -1420,6 +1422,7 @@
...
@@ -1420,6 +1422,7 @@
#define CONFIG_ILBC_AT_ENCODER 0
#define CONFIG_ILBC_AT_ENCODER 0
#define CONFIG_PCM_ALAW_AT_ENCODER 0
#define CONFIG_PCM_ALAW_AT_ENCODER 0
#define CONFIG_PCM_MULAW_AT_ENCODER 0
#define CONFIG_PCM_MULAW_AT_ENCODER 0
#define CONFIG_LIBCODEC2_ENCODER 0
#define CONFIG_LIBFDK_AAC_ENCODER 0
#define CONFIG_LIBFDK_AAC_ENCODER 0
#define CONFIG_LIBGSM_ENCODER 0
#define CONFIG_LIBGSM_ENCODER 0
#define CONFIG_LIBGSM_MS_ENCODER 0
#define CONFIG_LIBGSM_MS_ENCODER 0
...
@@ -1488,6 +1491,8 @@
...
@@ -1488,6 +1491,8 @@
#define CONFIG_HEVC_VAAPI_HWACCEL 0
#define CONFIG_HEVC_VAAPI_HWACCEL 0
#define CONFIG_HEVC_VDPAU_HWACCEL 0
#define CONFIG_HEVC_VDPAU_HWACCEL 0
#define CONFIG_HEVC_VIDEOTOOLBOX_HWACCEL 0
#define CONFIG_HEVC_VIDEOTOOLBOX_HWACCEL 0
#define CONFIG_MJPEG_NVDEC_HWACCEL 1
#define CONFIG_MJPEG_VAAPI_HWACCEL 0
#define CONFIG_MPEG1_NVDEC_HWACCEL 1
#define CONFIG_MPEG1_NVDEC_HWACCEL 1
#define CONFIG_MPEG1_VDPAU_HWACCEL 0
#define CONFIG_MPEG1_VDPAU_HWACCEL 0
#define CONFIG_MPEG1_VIDEOTOOLBOX_HWACCEL 0
#define CONFIG_MPEG1_VIDEOTOOLBOX_HWACCEL 0
...
@@ -1585,6 +1590,7 @@
...
@@ -1585,6 +1590,7 @@
#define CONFIG_VP9_PARSER 1
#define CONFIG_VP9_PARSER 1
#define CONFIG_XMA_PARSER 1
#define CONFIG_XMA_PARSER 1
#define CONFIG_ALSA_INDEV 0
#define CONFIG_ALSA_INDEV 0
#define CONFIG_ANDROID_CAMERA_INDEV 0
#define CONFIG_AVFOUNDATION_INDEV 0
#define CONFIG_AVFOUNDATION_INDEV 0
#define CONFIG_BKTR_INDEV 0
#define CONFIG_BKTR_INDEV 0
#define CONFIG_DECKLINK_INDEV 0
#define CONFIG_DECKLINK_INDEV 0
...
@@ -2027,6 +2033,8 @@
...
@@ -2027,6 +2033,8 @@
#define CONFIG_CDG_DEMUXER 1
#define CONFIG_CDG_DEMUXER 1
#define CONFIG_CDXL_DEMUXER 1
#define CONFIG_CDXL_DEMUXER 1
#define CONFIG_CINE_DEMUXER 1
#define CONFIG_CINE_DEMUXER 1
#define CONFIG_CODEC2_DEMUXER 1
#define CONFIG_CODEC2RAW_DEMUXER 1
#define CONFIG_CONCAT_DEMUXER 1
#define CONFIG_CONCAT_DEMUXER 1
#define CONFIG_DASH_DEMUXER 1
#define CONFIG_DASH_DEMUXER 1
#define CONFIG_DATA_DEMUXER 1
#define CONFIG_DATA_DEMUXER 1
...
@@ -2286,6 +2294,8 @@
...
@@ -2286,6 +2294,8 @@
#define CONFIG_BIT_MUXER 1
#define CONFIG_BIT_MUXER 1
#define CONFIG_CAF_MUXER 1
#define CONFIG_CAF_MUXER 1
#define CONFIG_CAVSVIDEO_MUXER 1
#define CONFIG_CAVSVIDEO_MUXER 1
#define CONFIG_CODEC2_MUXER 1
#define CONFIG_CODEC2RAW_MUXER 1
#define CONFIG_CRC_MUXER 1
#define CONFIG_CRC_MUXER 1
#define CONFIG_DASH_MUXER 1
#define CONFIG_DASH_MUXER 1
#define CONFIG_DATA_MUXER 1
#define CONFIG_DATA_MUXER 1
...
...
SMP/libavcodec.vcxproj
浏览文件 @
cd113c9d
...
@@ -847,6 +847,7 @@
...
@@ -847,6 +847,7 @@
<ClCompile
Include=
"..\libavcodec\nvdec_h264.c"
/>
<ClCompile
Include=
"..\libavcodec\nvdec_h264.c"
/>
<ClCompile
Include=
"..\libavcodec\dxva2_hevc.c"
/>
<ClCompile
Include=
"..\libavcodec\dxva2_hevc.c"
/>
<ClCompile
Include=
"..\libavcodec\nvdec_hevc.c"
/>
<ClCompile
Include=
"..\libavcodec\nvdec_hevc.c"
/>
<ClCompile
Include=
"..\libavcodec\nvdec_mjpeg.c"
/>
<ClCompile
Include=
"..\libavcodec\nvdec_mpeg12.c"
/>
<ClCompile
Include=
"..\libavcodec\nvdec_mpeg12.c"
/>
<ClCompile
Include=
"..\libavcodec\dxva2_mpeg2.c"
/>
<ClCompile
Include=
"..\libavcodec\dxva2_mpeg2.c"
/>
<ClCompile
Include=
"..\libavcodec\nvdec_mpeg4.c"
/>
<ClCompile
Include=
"..\libavcodec\nvdec_mpeg4.c"
/>
...
...
SMP/libavcodec.vcxproj.filters
浏览文件 @
cd113c9d
...
@@ -2364,6 +2364,9 @@
...
@@ -2364,6 +2364,9 @@
<ClCompile
Include=
"..\libavcodec\nvdec_hevc.c"
>
<ClCompile
Include=
"..\libavcodec\nvdec_hevc.c"
>
<Filter>
Source Files\libavcodec
</Filter>
<Filter>
Source Files\libavcodec
</Filter>
</ClCompile>
</ClCompile>
<ClCompile
Include=
"..\libavcodec\nvdec_mjpeg.c"
>
<Filter>
Source Files\libavcodec
</Filter>
</ClCompile>
<ClCompile
Include=
"..\libavcodec\nvdec_mpeg12.c"
>
<ClCompile
Include=
"..\libavcodec\nvdec_mpeg12.c"
>
<Filter>
Source Files\libavcodec
</Filter>
<Filter>
Source Files\libavcodec
</Filter>
</ClCompile>
</ClCompile>
...
...
SMP/libavformat.def
浏览文件 @
cd113c9d
...
@@ -162,6 +162,9 @@ EXPORTS
...
@@ -162,6 +162,9 @@ EXPORTS
avio_wl64
avio_wl64
avio_write
avio_write
avio_write_marker
avio_write_marker
avpriv_codec2_mode_bit_rate
avpriv_codec2_mode_block_align
avpriv_codec2_mode_frame_size
avpriv_dv_get_packet
avpriv_dv_get_packet
avpriv_dv_init_demux
avpriv_dv_init_demux
avpriv_dv_produce_packet
avpriv_dv_produce_packet
...
...
SMP/libavformat.vcxproj
浏览文件 @
cd113c9d
...
@@ -195,6 +195,8 @@
...
@@ -195,6 +195,8 @@
<ClCompile
Include=
"..\libavformat\cdg.c"
/>
<ClCompile
Include=
"..\libavformat\cdg.c"
/>
<ClCompile
Include=
"..\libavformat\cdxl.c"
/>
<ClCompile
Include=
"..\libavformat\cdxl.c"
/>
<ClCompile
Include=
"..\libavformat\cinedec.c"
/>
<ClCompile
Include=
"..\libavformat\cinedec.c"
/>
<ClCompile
Include=
"..\libavcodec\codec2utils.c"
/>
<ClCompile
Include=
"..\libavformat\codec2.c"
/>
<ClCompile
Include=
"..\libavformat\concatdec.c"
/>
<ClCompile
Include=
"..\libavformat\concatdec.c"
/>
<ClCompile
Include=
"..\libavformat\crcenc.c"
/>
<ClCompile
Include=
"..\libavformat\crcenc.c"
/>
<ClCompile
Include=
"..\libavformat\dash.c"
/>
<ClCompile
Include=
"..\libavformat\dash.c"
/>
...
...
SMP/libavformat.vcxproj.filters
浏览文件 @
cd113c9d
...
@@ -16,9 +16,12 @@
...
@@ -16,9 +16,12 @@
<Filter
Include=
"Resource Files\libavformat"
>
<Filter
Include=
"Resource Files\libavformat"
>
<UniqueIdentifier>
{9fee14b2-1b77-463a-bd6b-60efdcf8850f}
</UniqueIdentifier>
<UniqueIdentifier>
{9fee14b2-1b77-463a-bd6b-60efdcf8850f}
</UniqueIdentifier>
</Filter>
</Filter>
<Filter
Include=
"Source Files\libav
format
"
>
<Filter
Include=
"Source Files\libav
codec
"
>
<UniqueIdentifier>
{bf017c32-250d-47da-b7e6-d5a5091cb1e6}
</UniqueIdentifier>
<UniqueIdentifier>
{bf017c32-250d-47da-b7e6-d5a5091cb1e6}
</UniqueIdentifier>
</Filter>
</Filter>
<Filter
Include=
"Source Files\libavformat"
>
<UniqueIdentifier>
{fd9e10e9-18f6-437d-b5d7-17290540c8b8}
</UniqueIdentifier>
</Filter>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<None
Include=
".\libavformat.def"
>
<None
Include=
".\libavformat.def"
>
...
@@ -409,6 +412,12 @@
...
@@ -409,6 +412,12 @@
<ClCompile
Include=
"..\libavformat\cinedec.c"
>
<ClCompile
Include=
"..\libavformat\cinedec.c"
>
<Filter>
Source Files\libavformat
</Filter>
<Filter>
Source Files\libavformat
</Filter>
</ClCompile>
</ClCompile>
<ClCompile
Include=
"..\libavcodec\codec2utils.c"
>
<Filter>
Source Files\libavcodec
</Filter>
</ClCompile>
<ClCompile
Include=
"..\libavformat\codec2.c"
>
<Filter>
Source Files\libavformat
</Filter>
</ClCompile>
<ClCompile
Include=
"..\libavformat\concatdec.c"
>
<ClCompile
Include=
"..\libavformat\concatdec.c"
>
<Filter>
Source Files\libavformat
</Filter>
<Filter>
Source Files\libavformat
</Filter>
</ClCompile>
</ClCompile>
...
...
SMP/libavformat/demuxer_list.c
浏览文件 @
cd113c9d
...
@@ -66,6 +66,8 @@ static const AVInputFormat *demuxer_list[] = {
...
@@ -66,6 +66,8 @@ static const AVInputFormat *demuxer_list[] = {
&
ff_cdg_demuxer
,
&
ff_cdg_demuxer
,
&
ff_cdxl_demuxer
,
&
ff_cdxl_demuxer
,
&
ff_cine_demuxer
,
&
ff_cine_demuxer
,
&
ff_codec2_demuxer
,
&
ff_codec2raw_demuxer
,
&
ff_concat_demuxer
,
&
ff_concat_demuxer
,
&
ff_dash_demuxer
,
&
ff_dash_demuxer
,
&
ff_data_demuxer
,
&
ff_data_demuxer
,
...
...
SMP/libavformat/muxer_list.c
浏览文件 @
cd113c9d
...
@@ -38,6 +38,8 @@ static const AVOutputFormat *muxer_list[] = {
...
@@ -38,6 +38,8 @@ static const AVOutputFormat *muxer_list[] = {
&
ff_bit_muxer
,
&
ff_bit_muxer
,
&
ff_caf_muxer
,
&
ff_caf_muxer
,
&
ff_cavsvideo_muxer
,
&
ff_cavsvideo_muxer
,
&
ff_codec2_muxer
,
&
ff_codec2raw_muxer
,
&
ff_crc_muxer
,
&
ff_crc_muxer
,
&
ff_dash_muxer
,
&
ff_dash_muxer
,
&
ff_data_muxer
,
&
ff_data_muxer
,
...
...
SMP/project_get_dependencies.bat
浏览文件 @
cd113c9d
...
@@ -131,9 +131,9 @@ ECHO %REPONAME%: Getting latest release...
...
@@ -131,9 +131,9 @@ ECHO %REPONAME%: Getting latest release...
SET
UPSTREAMAPIURL
=
%UPSTREAMURL
:github
.com
=
api
.github.com/repos
%
SET
UPSTREAMAPIURL
=
%UPSTREAMURL
:github
.com
=
api
.github.com/repos
%
REM Check if secure OAuth is available
REM Check if secure OAuth is available
IF
"
%GITHUBTOKEN%
"
==
""
(
IF
"
%GITHUBTOKEN%
"
==
""
(
powershell
-nologo -noprofile -command
"try { Invoke-RestMethod -Uri
%UPSTREAMAPIURL%
/
%REPONAME%
/releases/latest > latest.json } catch {exit 1}"
powershell
-nologo -noprofile -command
"
$currentMaxTls = [Math]::Max([Net.ServicePointManager]::SecurityProtocol.value__,[Net.SecurityProtocolType]::Tls.value__);$newTlsTypes = [enum]::GetValues('Net.SecurityProtocolType') | ?{ $_ -gt $currentMaxTls };ForEach ($newTls in $newTlsTypes) { [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor $newTls };
try { Invoke-RestMethod -Uri
%UPSTREAMAPIURL%
/
%REPONAME%
/releases/latest > latest.json } catch {exit 1}"
)
ELSE
(
)
ELSE
(
powershell
-nologo -noprofile -command
"try { Invoke-RestMethod -Uri
%UPSTREAMAPIURL%
/
%REPONAME%
/releases/latest -Headers @{'Authorization' = 'token
%GITHUBTOKEN%
'} > latest.json } catch {exit 1}"
powershell
-nologo -noprofile -command
"
$currentMaxTls = [Math]::Max([Net.ServicePointManager]::SecurityProtocol.value__,[Net.SecurityProtocolType]::Tls.value__);$newTlsTypes = [enum]::GetValues('Net.SecurityProtocolType') | ?{ $_ -gt $currentMaxTls };ForEach ($newTls in $newTlsTypes) { [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor $newTls };
try { Invoke-RestMethod -Uri
%UPSTREAMAPIURL%
/
%REPONAME%
/releases/latest -Headers @{'Authorization' = 'token
%GITHUBTOKEN%
'} > latest.json } catch {exit 1}"
)
)
IF
ERRORLEVEL
1
(
ECHO
Failed
getting
latest
%REPONAME%
release
&
EXIT
/B
1
)
IF
ERRORLEVEL
1
(
ECHO
Failed
getting
latest
%REPONAME%
release
&
EXIT
/B
1
)
REM Get tag for latest release
REM Get tag for latest release
...
@@ -156,7 +156,7 @@ REM Download a pre-built archive and extract
...
@@ -156,7 +156,7 @@ REM Download a pre-built archive and extract
ECHO
%REPONAME%
:
Downloading
%LIBNAME%
_
%TAG%
_msvc
%MSVC_VER%
.zip...
ECHO
%REPONAME%
:
Downloading
%LIBNAME%
_
%TAG%
_msvc
%MSVC_VER%
.zip...
SET
PREBUILTDIR
=
prebuilt
SET
PREBUILTDIR
=
prebuilt
MKDIR
%PREBUILTDIR%
>
NUL
2
>&
1
MKDIR
%PREBUILTDIR%
>
NUL
2
>&
1
powershell
-nologo -noprofile -command
"try { (New-Object Net.WebClient).DownloadFile('
%DLURL%
', '
%PREBUILTDIR%
\temp.zip') } catch {exit 1}"
powershell
-nologo -noprofile -command
"
$currentMaxTls = [Math]::Max([Net.ServicePointManager]::SecurityProtocol.value__,[Net.SecurityProtocolType]::Tls.value__);$newTlsTypes = [enum]::GetValues('Net.SecurityProtocolType') | ?{ $_ -gt $currentMaxTls };ForEach ($newTls in $newTlsTypes) { [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor $newTls };
try { (New-Object Net.WebClient).DownloadFile('
%DLURL%
', '
%PREBUILTDIR%
\temp.zip') } catch {exit 1}"
IF
ERRORLEVEL
1
(
ECHO
Failed
downloading
%DLURL%
&
EXIT
/B
1
)
IF
ERRORLEVEL
1
(
ECHO
Failed
downloading
%DLURL%
&
EXIT
/B
1
)
powershell
-nologo -noprofile -command
"Add-Type -AssemblyName System.IO.Compression.FileSystem; $zip=[System.IO.Compression.ZipFile]::OpenRead('
%PREBUILTDIR%
\temp.zip'); foreach ($item in $zip.Entries) { try {$file=(Join-Path -Path .\
%PREBUILTDIR%
-ChildPath $item.FullName); $null=[System.IO.Directory]::CreateDirectory((Split-Path -Path $file)); [System.IO.Compression.ZipFileExtensions]::ExtractToFile($item,$file,$true)} catch {exit 1} }"
powershell
-nologo -noprofile -command
"Add-Type -AssemblyName System.IO.Compression.FileSystem; $zip=[System.IO.Compression.ZipFile]::OpenRead('
%PREBUILTDIR%
\temp.zip'); foreach ($item in $zip.Entries) { try {$file=(Join-Path -Path .\
%PREBUILTDIR%
-ChildPath $item.FullName); $null=[System.IO.Directory]::CreateDirectory((Split-Path -Path $file)); [System.IO.Compression.ZipFileExtensions]::ExtractToFile($item,$file,$true)} catch {exit 1} }"
IF
ERRORLEVEL
1
(
ECHO
Failed
extracting
downloaded
archive
&
EXIT
/B
1
)
IF
ERRORLEVEL
1
(
ECHO
Failed
extracting
downloaded
archive
&
EXIT
/B
1
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录