Skip to content

Commit

Permalink
Update workflow version
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 6, 2025
1 parent 3923ac1 commit 8eb11ea
Show file tree
Hide file tree
Showing 6 changed files with 208 additions and 3 deletions.
2 changes: 1 addition & 1 deletion about-mac/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Contains UserName、Model、HostName、Primary Ethernet Address、IPv4 Address



[![](https://img.shields.io/badge/version-v1.24-green?style=for-the-badge)](https://img.shields.io/badge/version-v1.24-green?style=for-the-badge)
[![](https://img.shields.io/badge/version-v1.25-green?style=for-the-badge)](https://img.shields.io/badge/version-v1.25-green?style=for-the-badge)
[![](https://img.shields.io/badge/download-click-blue?style=for-the-badge)](https://github.com/alanhe421/alfred-workflows/raw/master/about-mac/About%20Mac.alfredworkflow)
[![](https://img.shields.io/badge/Install%20In%20Alfred-8A2BE2?style=for-the-badge)](https://alfred.app/workflows/alanhe/about-mac/install/)

Expand Down
2 changes: 1 addition & 1 deletion about-mac/src/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ Contains UserName、Model、HostName、Primary Ethernet Address、IPv4 Address
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>1.24</string>
<string>1.25</string>
<key>webaddress</key>
<string>https://github.com/alanhg/alfred-workflows/tree/master/about-mac</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion about-mac/src/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ cat << EOF
{"title":"${arrIN[3]}","subtitle":"IPv4 Address","icon":{"path":"./icons/ip.png"},"arg":"${arrIN[3]}","uid":"ipv4_address","text":{"copy":"${arrIN[3]}","largetype":"${arrIN[3]}"},"match":"ip_"},
{"title":"${arrIN[9]} ${arrIN[4]}","subtitle":"MacOS System Version","icon":{"path":"./icons/mac.png"},"arg":"${arrIN[9]} ${arrIN[4]}","uid":"mac_os_system_version","text":{"copy":"${arrIN[9]} ${arrIN[4]}","largetype":"${arrIN[9]} ${arrIN[4]}"},"match":"os ${arrIN[9]} ${arrIN[4]} "},
{"title":"${cpuName}","subtitle":"${cpuTitle}","icon":{"path":"./icons/cpu.png"},"arg":"${cpuName}","uid":"cpu_type","text":{"copy":"${cpuName}","largetype":"${cpuName}"},"match":"cpu ${cpuName} ${cpuTitle}"},
{"title":"${arrIN[6]} GB Total , ${arrIN[10]} GB Free","subtitle":"Physical Memory, ${freeMemoryPercent}% Free","icon":{"path":"./icons/memory.png"},"arg":"${arrIN[6]}GB total, ${arrIN[10]}GB free","uid":"physical_memory","text":{"copy":"${arrIN[6]}GB total, ${arrIN[10]}GB free","largetype":"${arrIN[6]}GB total, ${arrIN[10]}GB free"}},
{"title":"${arrIN[6]} GB Total , ${arrIN[10]} GB Free","subtitle":"Physical Memory, ${freeMemoryPercent}% Free","icon":{"path":"./icons/memory.png"},"arg":"${arrIN[6]}GB total, ${arrIN[10]}GB free","uid":"physical_memory","text":{"copy":"${arrIN[6]}GB total, ${arrIN[10]}GB free","largetype":"${arrIN[6]}GB total, ${arrIN[10]}GB free"},"match":"physical memory ${arrIN[6]}GB ${arrIN[10]}GB"},
{"title":"${arrIN[7]} GB Total , ${arrIN[8]} GB Free","subtitle":"Storage, ${freeDiskPercent}% Free","icon":{"path":"./icons/disk.png"},"arg":"${arrIN[7]}GB total,${arrIN[8]}GB free","uid":"physical__disk","text":{"copy":"${arrIN[7]}GB total,${arrIN[8]}GB free","largetype":"${arrIN[7]}GB total,${arrIN[8]}GB free"},"match":"storage ${arrIN[7]}GB ${arrIN[8]}GB"},
{"title":"Locale / Language","subtitle":"${arrIN[12]}","icon":{"path":"./icons/locale.png"},"arg":"${arrIN[12]}","uid":"locale_language","text":{"copy":"${arrIN[12]}","largetype":"${arrIN[12]}"}},
{"title":"Display Resolution","subtitle":"${displayResolution}","icon":{"path":"./icons/display-resolution.png"},"arg":"${displayResolution}","uid":"display_resolution","text":{"copy":"${displayResolution}","largetype":"${displayResolution}"},"match":"display resolution ${displayResolution} screen"},
Expand Down
21 changes: 21 additions & 0 deletions ffmpeg/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# ffmpeg

> Support Merge MP4 And Audio
## Requirement

```shell

brew install ffmpeg

```



[![](https://img.shields.io/badge/version-v0.1-green?style=for-the-badge)](https://img.shields.io/badge/version-v0.1-green?style=for-the-badge)
[![](https://img.shields.io/badge/download-click-blue?style=for-the-badge)](https://github.com/alanhe421/alfred-workflows/raw/master/ffmpeg/ffmpeg.alfredworkflow)




<!-- more -->
Binary file added ffmpeg/src/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
184 changes: 184 additions & 0 deletions ffmpeg/src/info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>bundleid</key>
<string>cn.alanhe.ffmpeg</string>
<key>category</key>
<string>Self-Dev</string>
<key>connections</key>
<dict>
<key>2E3CF269-8610-470E-89B7-35F75137ED97</key>
<array>
<dict>
<key>destinationuid</key>
<string>C2936869-CAD0-49F2-AA64-EDBEC43A724B</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>C2936869-CAD0-49F2-AA64-EDBEC43A724B</key>
<array>
<dict>
<key>destinationuid</key>
<string>18785316-3770-4BB9-B136-ABF9DEAFA21A</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
</dict>
<key>createdby</key>
<string>Alan He</string>
<key>description</key>
<string></string>
<key>disabled</key>
<false/>
<key>name</key>
<string>ffmpeg</string>
<key>objects</key>
<array>
<dict>
<key>config</key>
<dict>
<key>concurrently</key>
<false/>
<key>escaping</key>
<integer>102</integer>
<key>script</key>
<string>eval "{query}"</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
<string></string>
<key>type</key>
<integer>0</integer>
</dict>
<key>type</key>
<string>alfred.workflow.action.script</string>
<key>uid</key>
<string>18785316-3770-4BB9-B136-ABF9DEAFA21A</string>
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>concurrently</key>
<false/>
<key>escaping</key>
<integer>118</integer>
<key>script</key>
<string>#!/bin/bash
# 获取传递进来的query参数
query="{query}"
# 使用制表符分割query成数组
IFS=$'\t' read -r -a file_array &lt;&lt;&lt; "$query"
# 初始化输入参数部分
input_params=""
# 遍历文件路径数组,拼接-i参数
for theFile in "${file_array[@]}"; do
# 确保每个路径都加上引号以处理空格
input_params+="-i \"$theFile\" "
done
# 获取第一个文件的目录,用来保存输出文件
output_dir=$(dirname "${file_array[0]}")
# 构造输出文件的路径
output_file="${output_dir}/output.mp4"
# 打印最终的ffmpeg命令,以便调试
echo "ffmpeg $input_params -c:v copy -c:a aac -strict experimental \"$output_file\""</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
<string></string>
<key>type</key>
<integer>0</integer>
</dict>
<key>type</key>
<string>alfred.workflow.action.script</string>
<key>uid</key>
<string>C2936869-CAD0-49F2-AA64-EDBEC43A724B</string>
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>acceptsmulti</key>
<integer>2</integer>
<key>filetypes</key>
<array>
<string>com.apple.m4a-audio</string>
<string>public.mpeg-4</string>
</array>
<key>name</key>
<string>Merge Video Or Audio</string>
</dict>
<key>type</key>
<string>alfred.workflow.trigger.action</string>
<key>uid</key>
<string>2E3CF269-8610-470E-89B7-35F75137ED97</string>
<key>version</key>
<integer>1</integer>
</dict>
</array>
<key>readme</key>
<string># ffmpeg
&gt; Support Merge MP4 And Audio
## Requirement
```shell
brew install ffmpeg
```</string>
<key>uidata</key>
<dict>
<key>18785316-3770-4BB9-B136-ABF9DEAFA21A</key>
<dict>
<key>xpos</key>
<real>650</real>
<key>ypos</key>
<real>150</real>
</dict>
<key>2E3CF269-8610-470E-89B7-35F75137ED97</key>
<dict>
<key>xpos</key>
<real>130</real>
<key>ypos</key>
<real>155</real>
</dict>
<key>C2936869-CAD0-49F2-AA64-EDBEC43A724B</key>
<dict>
<key>xpos</key>
<real>395</real>
<key>ypos</key>
<real>150</real>
</dict>
</dict>
<key>userconfigurationconfig</key>
<array/>
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>0.1</string>
<key>webaddress</key>
<string>https://1991421.cn</string>
</dict>
</plist>

0 comments on commit 8eb11ea

Please sign in to comment.