Support homebrew

This commit is contained in:
Wu Zhenyu 2023-03-11 19:01:34 +08:00
parent 2995d205d7
commit 3c3c8e6269
No known key found for this signature in database
GPG Key ID: 0E07E1F8C0EC10AD
5 changed files with 53 additions and 1 deletions

5
.gitlint Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env -S gitlint -C
[ignore-by-title]
regex=.*
ignore=body-is-missing
# ex: filetype=dosini

10
.rubocop.yml Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env -S rubocop -c
---
StringLiterals:
EnforcedStyle: double_quotes
Layout/LineLength:
Max: 118
Style/FrozenStringLiteralComment:
Exclude: "*.rb"
Style/Documentation:
Exclude: "*.rb"

8
.yamllint.yaml Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env -S yamllint -c
---
extends: default
rules:
comments:
# https://github.com/prettier/prettier/issues/6780
min-spaces-from-content: 1

View File

@ -70,7 +70,9 @@ TODO
- Any Linux distributions with linuxbrew
- macOS with homebrew
TODO
```sh
brew install https://github.com/nachifur/MulimgViewer/blob/master/python-mulimgviewer.rb
```
## Windows exe

27
python-mulimgviewer.rb Normal file
View File

@ -0,0 +1,27 @@
class PythonMulimgviewer < Formula
include Language::Python::Virtualenv
desc "A multi-image viewer that can open multiple images in one interface"
homepage "https://mulimgviewer.readthedocs.io/"
url "https://files.pythonhosted.org/packages/source/m/mulimgviewer/mulimgviewer-3.9.10.tar.gz"
sha256 "b2b060a27effcab6ef57a9b4126ebb8a203528ba3a6f641326337bf3a6d921c9"
license "GPLv3"
head "https://github.com/nachifur/MulimgViewer", branch: "master"
depends_on "python@3.11"
depends_on "wxpython"
depends_on "pillow"
resource "piexif" do
url "https://github.com/hMatoba/Piexif/archive/1.0.13.tar.gz"
sha256 "66278d77ffa8fc816736104bc8bf5d26ac95cb8b9b3420e17f6d6d9a475e1e43"
end
resource "requests" do
url "https://github.com/psf/requests/archive/v2.28.2/python-requests-2.28.2.tar.gz"
sha256 "375d6bb6b73af27c69487dcf1df51659a8ee7428420caff21253825fb338ce10"
end
def install
virtualenv_install_with_resources
end
end