Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mazipan/xhotit
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: release-v1.1.1
Choose a base ref
...
head repository: mazipan/xhotit
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Jan 17, 2025

  1. Copy the full SHA
    710387f View commit details
Showing with 31 additions and 16 deletions.
  1. +5 −4 .github/workflows/publish-to-manual-release.yml
  2. +26 −12 README.md
9 changes: 5 additions & 4 deletions .github/workflows/publish-to-manual-release.yml
Original file line number Diff line number Diff line change
@@ -37,15 +37,16 @@ jobs:
repo: context.repo.repo,
tag_name: `release-v${process.env.PACKAGE_VERSION}`,
name: `xhotit.v${process.env.PACKAGE_VERSION}`,
body: `Take a look at the assets to download and install this app.
body: `# New Release: v${process.env.PACKAGE_VERSION}
## 📦 Executable Assets
Take a look at the assets to download and install this app.
- **🍏 Mac**:
- Silicon: ▶️ \`Xhot.It_aarch64.app.tar.gz\`
- Intel : ▶️ \`Xhot.It_x64.app.tar.gz\`
- **🪟 Windows**:
- ▶️ \`Xhot.It_[version]_x64_en-US.msi\`
- ▶️ \`Xhot.It_[version]_x64-setup.exe\`
- **🐧 Linux**:
- ▶️ \`Xhot.It_[version]_amd64.deb\`
@@ -70,9 +71,9 @@ jobs:
- platform: "macos-latest" # for Intel based macs.
args: "--target x86_64-apple-darwin --bundles app"
- platform: "ubuntu-22.04" # for Tauri v1 you could replace this with ubuntu-20.04.
args: ""
args: "--bundles deb,rpm"
- platform: "windows-latest"
args: ""
args: "--bundles nsis"

runs-on: ${{ matrix.platform }}
steps:
38 changes: 26 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
# 📸 Xhot It

[![publish](https://github.com/mazipan/xhotit/actions/workflows/publish-to-manual-release.yml/badge.svg)](https://github.com/mazipan/xhotit/actions/workflows/publish-to-manual-release.yml) ![GitHub package.json version](https://img.shields.io/github/package-json/v/mazipan/xhotit) ![GitHub Release](https://img.shields.io/github/v/release/mazipan/xhotit)

Xhot it (read as "shot it") is just another screenshot app in your desktop: an experimental application. powered by [Tauri v2](https://v2.tauri.app/).

| Welcome screen | Backdrop editor | Image compressor |
| -------------- | --------------- | ---------------- |
| ![welcome text](./screenshots/01-welcome-screen.png) | ![backdrop editor](./screenshots/02-backdrop-editor.png) | ![image compressor](./screenshots/03-image-compressor.png) |
<div align="center">
<h1>📸 Xhot It</h1>
</div>

<div align="center">
<a href="https://github.com/mazipan/xhotit/actions"><img alt="Publish CI" src="https://github.com/mazipan/xhotit/actions/workflows/publish-to-manual-release.yml/badge.svg"></a>
<a href="https://github.com/mazipan/xhotit/releases"><img alt="Current Version" src="https://img.shields.io/github/package-json/v/mazipan/xhotit"></a>
<a href="https://github.com/mazipan/xhotit/releases"><img alt="Latest Release" src="https://img.shields.io/github/v/release/mazipan/xhotit"></a>
<p>Xhot it (read as "shot it") is just another screenshot app in your desktop: an experimental application. Powered by <a href="https://v2.tauri.app/" target="_blank" rel="noopener noreferrer">Tauri v2</a>.</p>
<img src="./screenshots/01-welcome-screen.png" alt="welcome to xhot it" height="200" />
</div>

| | |
| -------------- | --------------- |
| ![backdrop editor](./screenshots/02-backdrop-editor.png) | ![image compressor](./screenshots/03-image-compressor.png) |

![Screen Record](./screenshots/screenrecord.gif)

@@ -34,15 +40,15 @@ Download the executable files in our [release page](https://github.com/mazipan/x

### 2. Can not open the App

![MacOS can not open](./screenshots/mac-cannot-open.png)
<img src="./screenshots/mac-cannot-open.png" alt="MacOS can not open" height="150" />

It was blocked by default in MacOS, you need to give an access to the installed app. Check these step by step:
It was blocked and detected as malware by default in MacOS since we didn't do a code-signing. There is no plan to fix it in the near future. Meantime, you need to give an access manually. Check these step by step:

- Go to `System Settings` > `Privacy & Security`
- Scroll down to `Security` section
- Make sure to "Open Anyway" when it's asked

![MacOS open app anyway](./screenshots/mac-open-anyway.png)
<img src="./screenshots/mac-open-anyway.png" alt="MacOS open app anyway" height="150" />

### 3. Resolve app is damaged

@@ -71,11 +77,19 @@ Run app in your local
bun run tdev
```

Debug build

```bash
bun run tdebug
```

## Credits

- [dimaportenko/code-helper](https://github.com/dimaportenko/code-helper) for the base code
- [screenshots](https://crates.io/crates/screenshots) and [xcap](https://crates.io/crates/xcap) for capturing screen
- [active-win-pos-rs](https://crates.io/crates/active-win-pos-rs/) to detect active window position
- [lvandeve/lodepng](https://github.com/lvandeve/lodepng) to compress png
- [kornelski/mozjpeg-sys](https://github.com/kornelski/mozjpeg-sys) to compress jpg

## Contributors