查看“︁Upd”︁的源代码
←
Upd
跳转到导航
跳转到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:{{spmono|upd}}}} A tiny little script that is used to update many but not all of my command line applications. It requires itself and [[qe|{{spmono|qe.bat}}]] to be properly put into a folder set in {{spmono|%PATH%}} (here in my case is <code>C:\_c\</code>), with where 7-zip is installed is included in {{spmono|%PATH%}} as well. Similar to [[qe|{{spmono|qe}}]], it may be subject to frequent revisions. By default, if no switch is given to the script, it will download (from their official sites of course) and extract the command line applications as follows, and move them—overwrite if necessary, hence, update—to the aforesaid fixed folder set in {{spmono|%PATH%}}: <ul class="hlist"> <li>[https://github.com/denoland/deno/releases/latest/ {{spmono|deno}}];</li> <li>[https://exiftool.org/#alone {{spmono|exiftool}}];</li> <li>[https://github.com/yt-dlp/FFmpeg-Builds/releases/latest/download/ffmpeg-master-latest-win64-gpl-shared.zip {{spmono|ffmpeg}}];</li> <li>[https://github.com/gdl-org/builds/releases/latest/download/gallery-dl_windows.exe {{spmono|gallery-dl}}];</li> <li>[https://github.com/ImageMagick/ImageMagick/releases/latest/ ImageMagick];</li> <li>[https://github.com/shinchiro/mpv-winbuild-cmake/releases/latest/ {{spmono|mpv}}]; and</li> <li>[https://github.com/yt-dlp/yt-dlp-nightly-builds/releases/latest/download/yt-dlp.exe {{spmono|yt-dlp}}].</li> </ul> If <code>'''-d'''</code> is passed to the script, then it will only update the following three: <ul class="hlist"> <li>[https://github.com/yt-dlp/FFmpeg-Builds/releases/latest/download/ffmpeg-master-latest-win64-gpl-shared.zip {{spmono|ffmpeg}}];</li> <li>[https://github.com/gdl-org/builds/releases/latest/download/gallery-dl_windows.exe {{spmono|gallery-dl}}]; and</li> <li>[https://github.com/yt-dlp/yt-dlp-nightly-builds/releases/latest/download/yt-dlp.exe {{spmono|yt-dlp}}].</li> </ul> And if <code>'''-a'''</code> is passed to the script, then all of the following 19 will be downloaded, extracted, and put into the said folder in {{spmono|%PATH%}}, which actually served as an initial deployment of this set of applications: <ul class="hlist"> <li>[https://github.com/denoland/deno/releases/latest/ {{spmono|deno}}];</li> <li>[https://exiftool.org/#alone {{spmono|exiftool}}];</li> <li>[https://github.com/lionello/fart-it/releases/latest/download/fart-windows.zip {{spmono|fart}}];</li> <li>[https://github.com/yt-dlp/FFmpeg-Builds/releases/latest/download/ffmpeg-master-latest-win64-gpl-shared.zip {{spmono|ffmpeg}}];</li> <li>[https://github.com/gdl-org/builds/releases/latest/download/gallery-dl_windows.exe {{spmono|gallery-dl}}];</li> <li>[https://github.com/ImageMagick/ImageMagick/releases/latest/ ImageMagick];</li> <li>[https://artifacts.lucaversari.it/libjxl/libjxl/latest/jxl-x64-windows-static.zip {{spmono|libjxl}}];</li> <li>[https://ftp.osuosl.org/pub/xiph/releases/flac/?C=M;O=D {{spmono|flac}}];</li> </ul> <ul class="hlist"> <li>[https://github.com/shinchiro/mpv-winbuild-cmake/releases/latest/ {{spmono|mpv}}];</li> <li>[https://www.rarewares.org/rrw/neroaac.php Nero AAC Codec];</li> <li>[https://rarewares.org/opus.php {{spmono|opus-tools}}];</li> <li>[https://optipng.sourceforge.net/ {{spmono|optipng}}];</li> <li>[https://github.com/jgm/pandoc/releases/latest {{spmono|pandoc}}];</li> <li>[https://github.com/nu774/qaac/releases/latest {{spmono|qaac}}] and [https://github.com/AnimMouse/QTFiles/releases/latest/download/QTfiles64.7z {{spmono|qtfiles64}}];</li> </ul> <ul class="hlist"> <li>[https://angusj.com/resourcehacker/resource_hacker.zip Resource Hacker];</li> <li>[https://github.com/Tairesh/rustormy/releases/latest/ {{spmono|rustormy}}];</li> <li>[https://rarewares.org/others.php#SoX-repo {{spmono|sox}}];</li> <li>[https://storage.googleapis.com/downloads.webmproject.org/releases/webp/index.html {{spmono|libwebp}}]; and</li> <li>[https://github.com/yt-dlp/yt-dlp-nightly-builds/releases/latest/download/yt-dlp.exe {{spmono|yt-dlp}}].</li> </ul> Using <code>'''-0'''</code> with any one or more switches below can specifically update the manually selected application or applications only: <ul class="hlist"> <li><code>'''-dn'''</code>: {{spmono|<u>d</u>e<u>n</u>o}};</li> <li><code>'''-e'''</code>: {{spmono|<u>e</u>xiftool}};</li> <li><code>'''-f'''</code>: {{spmono|<u>f</u>fmpeg}};</li> <li><code>'''-g'''</code>: {{spmono|<u>g</u>allery-dl}};</li> <li><code>'''-i'''</code>: <u>I</u>mageMagick;</li> <li><code>'''-ft'''</code>: {{spmono|<u>f</u>ar<u>t</u>}};</li> <li><code>'''-j'''</code>: {{spmono|lib<u>j</u>xl}};</li> </ul> <ul class="hlist"> <li><code>'''-l'''</code>: {{spmono|f<u>l</u>ac}};</li> <li><code>'''-m'''</code>: {{spmono|<u>m</u>pv}};</li> <li><code>'''-n'''</code>: <u>N</u>ero AAC Codec;</li> <li><code>'''-o'''</code>: {{spmono|<u>o</u>pus-tools}};</li> <li><code>'''-p'''</code>: {{spmono|opti<u>p</u>ng}};</li> <li><code>'''-pd'''</code>: {{spmono|<u>p</u>an<u>d</u>oc}};</li> <li><code>'''-q'''</code>: {{spmono|<u>q</u>aac}};</li> </ul> <ul class="hlist"> <li><code>'''-qf'''</code>: {{spmono|<u>q</u>t<u>f</u>iles64}};</li> <li><code>'''-r'''</code>: <u>R</u>esource Hacker;</li> <li><code>'''-rw'''</code>: {{spmono|rustormy}};</li> <li><code>'''-s'''</code>: {{spmono|<u>s</u>ox}};</li> <li><code>'''-w'''</code>: {{spmono|lib<u>w</u>ebp}}; and</li> <li><code>'''-y'''</code>: {{spmono|<u>y</u>t-dlp}}.</li> </ul> Use double hyphens to explicitly exclude applications from any pre-written update set. For example, <code>upd -a --e</code> will update all but {{spmono|exiftool}}. An {{spmono|upd-dry.bat}} is enclosed below the main batch to serve as a separate ‘dry-run’ tool to test if the download links and filenames could be fetched correctly—and if not, revise and test them in the dry-run batch before merging the updated code with the main batch—and it is for this very reason, this separate batch stays separate, although it could be integrated with the main batch. It can be invoked by the main batch via <code>upd -dry</code>, or simply run it separately by itself. A special note on the choice of {{spmono|ff<wbr />mpeg}}’s build: the script will take [https://github.com/yt-dlp/FFmpeg-Builds/releases/latest/download/ffmpeg-master-latest-win64-gpl-shared.zip {{spmono|yt-dlp}}’s modified {{spmono|ff<wbr />mpeg}} build] by default; it can be reverted back to the [https://github.com/BtbN/FFmpeg-Builds/releases/latest/download/ffmpeg-master-latest-win64-gpl-shared.zip official build] by passing <code>-f<wbr />o<wbr />ri<wbr />g</code> to the script; or, if some non-free codecs are desired, passing <code>-f<wbr />non<wbr />f</code> to the script can further change the build to the [https://github.com/nanake/ffmpeg-tinderbox/releases/latest/ nanake’s]. ==The batches== <div style="margin: 0.7em 0 0.92em;">{{NB|These two batches use [[wikipedia:CURL|{{spmono|curl}}]], which has only been shipped natively since [[wikipedia:Windows_10,_version_1803|Windows 10 1803]]; for earlier versions of Windows—as early as [[wikipedia:Windows_Vista|Windows Vista]]—you’ll have to download [https://curl.se/windows/latest.cgi?p{{=}}win64-mingw.zip {{spmono|curl}}] and put it into {{spmono|%PATH%}} first.}}</div> {{upd-win}} {{upd-dry-win}}
此页面嵌入的页面:
Template:NB
(
查看源代码
)
Template:Spmono
(
查看源代码
)
Template:Stblu
(
查看源代码
)
Template:Upd-dry-win
(
查看源代码
)
Template:Upd-win
(
查看源代码
)
返回
Upd
。
导航菜单
个人工具
登录
命名空间
页面
讨论
不转换
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
查看
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
工具
链入页面
相关更改
页面信息