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 Nov 5, 2024
1 parent e5600e4 commit 7b10cd3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
3 changes: 2 additions & 1 deletion appid/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# AppID
> Getting Bundle ID, Release Version Number, App icon of apps
## Requirement
Expand All @@ -17,7 +18,7 @@



[![](https://img.shields.io/badge/version-v1.11-green?style=for-the-badge)](https://img.shields.io/badge/version-v1.11-green?style=for-the-badge)
[![](https://img.shields.io/badge/version-v1.12-green?style=for-the-badge)](https://img.shields.io/badge/version-v1.12-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/appid/AppID.alfredworkflow)
[![](https://img.shields.io/badge/Install%20In%20Alfred-8A2BE2?style=for-the-badge)](https://alfred.app/workflows/alanhe/appid/install/)

Expand Down
27 changes: 19 additions & 8 deletions appid/src/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,20 @@
require 'open3'
require 'pathname'
apps = Pathname('/Applications').children
.concat(Pathname('/Applications/Utilities').children)
.map(&:to_path)
.sort_by { |p| File.basename(p).downcase }
.select { |e| e.end_with?('.app') }
# Add your custom paths here
paths = [
'/Applications',
'/Applications/Utilities',
"#{ENV['HOME']}/Applications/JetBrains Toolbox"
]
apps = paths.flat_map do |path|
Pathname(path).children
end
apps = apps.map(&:to_path)
.sort_by { |p| File.basename(p).downcase }
.select { |e| e.end_with?('.app') }
script_filter_items = []
Expand All @@ -260,7 +269,8 @@ apps.each do |app|
script_filter_items.push(title: name, subtitle: appId, arg: appId, type:'file:skipcheck',icon: { type: 'fileicon', path: app },action:{ file:app})
end
puts({ items: script_filter_items }.to_json)</string>
puts({ items: script_filter_items }.to_json)
</string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -629,7 +639,8 @@ puts({ items: script_filter_items }.to_json)</string>
</dict>
</array>
<key>readme</key>
<string>&gt; Getting Bundle ID, Release Version Number, App icon of apps
<string># AppID
&gt; Getting Bundle ID, Release Version Number, App icon of apps
## Requirement
Expand Down Expand Up @@ -782,7 +793,7 @@ puts({ items: script_filter_items }.to_json)</string>
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>1.11</string>
<string>1.12</string>
<key>webaddress</key>
<string>https://github.com/alanhg/alfred-workflows/tree/master/appid</string>
</dict>
Expand Down

0 comments on commit 7b10cd3

Please sign in to comment.