Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/pyinstaller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
windows-file:
description: "Windows Version File"
type: string
default: ".github/files/win-version.yaml"
default: "assets/win-version.yaml"
source-file:
description: "Source File"
type: string
Expand Down Expand Up @@ -133,6 +133,7 @@ jobs:
extract: true

- name: "Windows Installer - Inno Setup"
if: ${{ matrix.os == 'windows-latest' }}
env:
version: ${{ inputs.version }}
shell: pwsh
Expand Down
26 changes: 9 additions & 17 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
jobs:
pyinstaller:
name: "PyInstaller"
if: ${{ !github.event.release.prerelease }}
#if: ${{ !github.event.release.prerelease }}
uses: ./.github/workflows/pyinstaller.yaml
secrets: inherit
with:
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
name: "Publish"
runs-on: ubuntu-latest
timeout-minutes: 5
needs: [build]
needs: [build, pyinstaller]

permissions:
contents: write
Expand Down Expand Up @@ -156,21 +156,6 @@ jobs:
name: ${{ env.name }}
prerelease: ${{ github.event.release.prerelease }}

- name: "Send Failure Notification"
if: ${{ failure() }}
uses: sarisia/actions-status-discord@eb045afee445dc055c18d3d90bd0f244fd062708 # v1.16.0
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

virustotal:
name: "VirusTotal Scan"
runs-on: ubuntu-latest
needs: [pyinstaller, release]
timeout-minutes: 5
if: ${{ github.event_name == 'release' }}

steps:
- name: "VirusTotal"
uses: cssnr/virustotal-action@master
continue-on-error: true
Expand All @@ -179,3 +164,10 @@ jobs:
vt_api_key: ${{ secrets.VT_API_KEY }}
update_release: true
collapsed: true

- name: "Send Failure Notification"
if: ${{ failure() }}
uses: sarisia/actions-status-discord@eb045afee445dc055c18d3d90bd0f244fd062708 # v1.16.0
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ coverage.xml
/tests/files
/tests/fake.json
*.spec
win-version.txt
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.github/pull_request_template.md
package-lock.json
1 change: 0 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"trailingComma": "es5",
"semi": false,
"singleQuote": true,
"printWidth": 90,
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[![PyPI Version](https://img.shields.io/pypi/v/sharex-cli?logo=pypi&logoColor=white&label=pypi)](https://pypi.org/project/sharex-cli/)
[![GitHub Release Version](https://img.shields.io/github/v/release/cssnr/sharex-cli?logo=github)](https://github.com/cssnr/sharex-cli/releases)
[![TOML Python Version](https://img.shields.io/badge/dynamic/toml?url=https%3A%2F%2Fraw.githubusercontent.com%2Fcssnr%2Fsharex-cli%2Frefs%2Fheads%2Fmaster%2Fpyproject.toml&query=%24.project.requires-python&logo=python&logoColor=white&label=python)](https://github.com/cssnr/sharex-cli?tab=readme-ov-file#readme)
[![GitHub Downloads](https://img.shields.io/github/downloads/cssnr/sharex-cli/total?logo=github&label=downloads)](https://github.com/cssnr/sharex-cli/releases/latest)
[![PyPI Downloads](https://img.shields.io/pypi/dm/sharex-cli?logo=socialblade&logoColor=white)](https://pypistats.org/packages/sharex-cli)
[![Pepy Total Downloads](https://img.shields.io/pepy/dt/sharex-cli?logo=rolldown&logoColor=white&label=total)](https://clickpy.clickhouse.com/dashboard/sharex-cli)
[![Codecov](https://codecov.io/gh/cssnr/sharex-cli/graph/badge.svg?token=A8NDHZ393X)](https://codecov.io/gh/cssnr/sharex-cli)
Expand Down Expand Up @@ -78,6 +79,7 @@ curl https://i.jpillora.com/cssnr/sharex-cli! | bash
See [jpillora/installer](https://github.com/jpillora/installer) for more details.
Alternatively, you can manually download a release for your system.

- [Windows Installer](https://github.com/cssnr/sharex-cli/releases/latest/download/windows-installer.exe) _amd64_
- [Windows x86_64](https://github.com/cssnr/sharex-cli/releases/latest/download/windows-amd64.zip) _amd64_
- [macOS Apple Intel](https://github.com/cssnr/sharex-cli/releases/latest/download/macos-amd64.zip) _amd64_
- [macOS Apple Silicon](https://github.com/cssnr/sharex-cli/releases/latest/download/macos-arm64.zip) _arm64_
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ icon: lucide/rocket

[![PyPI Version](https://img.shields.io/pypi/v/sharex-cli?logo=pypi&logoColor=white&label=pypi)](https://pypi.org/project/sharex-cli/)
[![TOML Python Version](https://img.shields.io/badge/dynamic/toml?url=https%3A%2F%2Fraw.githubusercontent.com%2Fcssnr%2Fsharex-cli%2Frefs%2Fheads%2Fmaster%2Fpyproject.toml&query=%24.project.requires-python&logo=python&logoColor=white&label=python)](https://github.com/cssnr/sharex-cli?tab=readme-ov-file#readme)
[![GitHub Downloads](https://img.shields.io/github/downloads/cssnr/sharex-cli/total?logo=github&label=downloads)](https://github.com/cssnr/sharex-cli/releases/latest)
[![PyPI Downloads](https://img.shields.io/pypi/dm/sharex-cli?logo=socialblade&logoColor=white)](https://pypistats.org/packages/sharex-cli)
[![Pepy Total Downloads](https://img.shields.io/pepy/dt/sharex-cli?logo=rolldown&logoColor=white&label=total)](https://clickpy.clickhouse.com/dashboard/sharex-cli)
[![Codecov](https://codecov.io/gh/cssnr/sharex-cli/graph/badge.svg?token=A8NDHZ393X)](https://codecov.io/gh/cssnr/sharex-cli)
Expand Down
3 changes: 3 additions & 0 deletions docs/snippets/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@
```

1. For more details see the [Install Guide](cli.md#binary-release).

Windows users can download the [Windows Installer.exe](https://github.com/cssnr/sharex-cli/releases/latest/download/windows-installer.exe).
Alternatively, you can manually [download a release](https://github.com/cssnr/sharex-cli/releases).
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ extend-exclude = [".github"]
select = ["E4", "E7", "E9", "F", "B", "Q"]

[tool.scripts]
win-version = "uv run pyivf-make_version --source-format yaml --metadata-source .github/files/win-version.yaml --outfile win-version.txt"
win-version = "uv run pyivf-make_version --source-format yaml --metadata-source assets/win-version.yaml --outfile win-version.txt"
pyinstaller = "uv run pyinstaller -n sharex -i docs/favicon.ico src/app.py"
pathmgr = [
"mkdir dist || echo dist dir exists",
Expand Down
Loading