Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

make ci work (#83)

Brendan Allan628d6042a962
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 7d856531d..4b84ebf42 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -8,14 +8,15 @@ env:
APP_CARGO_TOML: apps/desktop-solid/src-tauri/Cargo.toml
jobs:
- cap-desktop-release:
+ draft:
+ runs-on: ubuntu-latest
+ outputs:
+ version: ${{ steps.read_version.outputs.value }}
+ needs_release: ${{ steps.create_tag.outputs.tag_existed != 'true' }}
permissions:
contents: write
- runs-on: macos-latest
-
steps:
- - name: Checkout repository
- uses: actions/checkout@v4
+ - uses: actions/checkout@v4
- name: Read version number
uses: SebRollen/[email protected]
@@ -24,33 +25,78 @@ jobs:
file: ${{ env.APP_CARGO_TOML }}
field: "package.version"
+ - name: Create tag
+ id: create_tag
+ if: ${{ steps.create_tag.outputs.tag_existed != 'true' }}
+ uses: actions/github-script@v7
+ with:
+ script: |
+ const tag = "cap-v${{ steps.read_version.outputs.value }}";
+ const tagRef = `tags/${tag}`;
+
+ const TAG_EXISTED = "tag_existed";
+
+ async function main() {
+ let tagExisted = true;
+
+ try {
+ await github.rest.git.getRef({
+ ref: tagRef,
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ });
+
+ tagExisted = true;
+ core.notice(`Release skipped as tag '${tag}' already exists. Update the version in '${{ env.APP_CARGO_TOML }}' before starting another release.`);
+ } catch (error) {
+ if ("status" in error && error.status === 404) tagExisted = false;
+ else throw error;
+ }
+
+ core.setOutput(TAG_EXISTED, tagExisted);
+
+ if (!tagExisted)
+ await github.rest.git.createRef({
+ ref: `refs/${tagRef}`,
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ sha: context.sha,
+ });
+ }
+
+ main();
+
- name: create draft release
uses: crabnebula-dev/cloud-release@v0
with:
command: release draft ${{ env.CN_APPLICATION }} ${{ steps.read_version.outputs.value }} --framework tauri
api-key: ${{ secrets.CN_API_KEY }}
+ build:
+ needs: draft
+ if: ${{ needs.draft.outputs.needs_release == 'true' }}
+ permissions:
+ contents: write
+ runs-on: macos-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ settings:
+ - target: x86_64-apple-darwin
+ prebuild: x86_64
+ - target: aarch64-apple-darwin
+ prebuild: aarch64
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
- name: Create API Key File
run: echo "${{ secrets.APPLE_API_KEY_FILE }}" > api.p8
- - name: Ensure signing identity
- env:
- APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
- APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
- run: |
- CERTIFICATE_PATH=${{ runner.temp }}/certificate.p12
- KEYCHAIN_PATH=${{ runner.temp }}/build.keychain
-
- echo -n "$APPLE_CERTIFICATE" | base64 --decode -o $CERTIFICATE_PATH
-
- # Maybe set password in secrets?? This gets cleaned up at the beginning and end of each job though.
- security create-keychain -p "" $KEYCHAIN_PATH
- security set-keychain-settings -lut 21600 $KEYCHAIN_PATH
- security default-keychain -s $KEYCHAIN_PATH
- security unlock-keychain -p "" $KEYCHAIN_PATH
- security import $CERTIFICATE_PATH -P "$APPLE_CERTIFICATE_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
- security set-key-partition-list -S apple-tool:,apple: -k "" $KEYCHAIN_PATH
- security list-keychain -d user -s $KEYCHAIN_PATH
+ - uses: apple-actions/import-codesign-certs@v2
+ with:
+ p12-file-base64: ${{ secrets.APPLE_CERTIFICATE }}
+ p12-password: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
- name: Verify certificate
run: security find-identity -v -p codesigning ${{ runner.temp }}/build.keychain
@@ -58,31 +104,30 @@ jobs:
- name: Rust setup
uses: dtolnay/rust-toolchain@stable
with:
- targets: x86_64-apple-darwin, aarch64-apple-darwin
+ targets: ${{ matrix.settings.target }}
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
- workspaces: |
- ". -> target"
- "./apps/desktop/src-tauri -> target"
-
- - name: Setup Node.js
- uses: actions/setup-node@v4
- with:
- node-version: "20"
+ shared-key: ${{ matrix.settings.target }}
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 8.10.5
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: "20"
+ cache: pnpm
+
- name: Install dependencies
- run: cd apps/desktop-solid && pnpm install
+ run: pnpm install
- name: Create .env file in root
run: |
- echo "appVersion=${{ steps.read_version.outputs.value }}" >> .env
+ echo "appVersion=${{ needs.draft.outputs.version }}" >> .env
echo "CAP_DESKTOP_SENTRY_URL=https://efd3156d9c0a8a49bee3ee675bec80d8@o4506859771527168.ingest.us.sentry.io/4506859844403200" >> .env
echo "NEXT_PUBLIC_URL=${{ secrets.NEXT_PUBLIC_URL }}" >> .env
echo 'NEXTAUTH_URL=${NEXT_PUBLIC_URL}' >> .env
@@ -95,33 +140,26 @@ jobs:
run: cat apps/desktop-solid/.env
- name: Build MacOS Apps
- # Install x86_64-apple-darwin for mac and build Tauri binaries
- # Build both intel and apple silicon
working-directory: apps/desktop-solid
run: |
- pnpm install
- node ${{ github.workspace }}/.github/prebuild.js aarch64
- pnpm tauri build --target aarch64-apple-darwin
- node ${{ github.workspace }}/.github/prebuild.js x86_64
- pnpm tauri build --target x86_64-apple-darwin
+ node ${{ github.workspace }}/.github/prebuild.js ${{ matrix.settings.prebuild }}
+ pnpm tauri build --target ${{ matrix.settings.target }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ # codesigning
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
- APPLE_ID: ${{ secrets.APPLE_ID }}
- APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
- APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
+ # notarization
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
APPLE_API_KEY: ${{ secrets.APPLE_API_KEY }}
- APPLE_API_KEY_PATH: api.p8
+ APPLE_API_KEY_PATH: ${{ github.workspace }}/api.p8
APPLE_KEYCHAIN: ${{ runner.temp }}/build.keychain
- TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
- TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
+ TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
+ TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
- name: upload assets
uses: crabnebula-dev/cloud-release@v0
with:
- command: release upload ${{ env.CN_APPLICATION }} --framework tauri
+ command: release upload ${{ env.CN_APPLICATION }} "${{ needs.draft.outputs.version }}" --framework tauri
api-key: ${{ secrets.CN_API_KEY }}
- working-directory: ./apps/desktop-solid/src-tauri
diff --git a/Cargo.lock b/Cargo.lock
index 546164d41..b01765208 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -124,104 +124,20 @@ dependencies = [
"yansi-term",
]
-[[package]]
-name = "anstream"
-version = "0.6.15"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "64e15c1ab1f89faffbf04a634d5e1962e9074f2741eef6d97f3c4e322426d526"
-dependencies = [
- "anstyle",
- "anstyle-parse",
- "anstyle-query",
- "anstyle-wincon",
- "colorchoice",
- "is_terminal_polyfill",
- "utf8parse",
-]
-
-[[package]]
-name = "anstyle"
-version = "1.0.8"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1bec1de6f59aedf83baf9ff929c98f2ad654b97c9510f4e70cf6f661d49fd5b1"
-
-[[package]]
-name = "anstyle-parse"
-version = "0.2.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "eb47de1e80c2b463c735db5b217a0ddc39d612e7ac9e2e96a5aed1f57616c1cb"
-dependencies = [
- "utf8parse",
-]
-
-[[package]]
-name = "anstyle-query"
-version = "1.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6d36fc52c7f6c869915e99412912f22093507da8d9e942ceaf66fe4b7c14422a"
-dependencies = [
- "windows-sys 0.52.0",
-]
-
-[[package]]
-name = "anstyle-wincon"
-version = "3.0.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5bf74e1b6e971609db8ca7a9ce79fd5768ab6ae46441c572e46cf596f59e57f8"
-dependencies = [
- "anstyle",
- "windows-sys 0.52.0",
-]
-
[[package]]
name = "anyhow"
version = "1.0.86"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da"
-[[package]]
-name = "apple-bindgen-helmer-fork"
-version = "0.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9717d1bd9d5fb13ef1de642273bac67e654664b69e99a65b7738cc9cbf0ca5e4"
-dependencies = [
- "apple-sdk",
- "bindgen",
- "clap",
- "derive_more",
- "regex",
- "serde",
- "thiserror",
- "toml 0.6.0",
-]
-
-[[package]]
-name = "apple-sdk"
-version = "0.4.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a04f192a700686ee70008ff4e4eb76fe7d11814ab93b7ee9d48c36b9a9f0bd2a"
-dependencies = [
- "plist",
- "serde",
- "serde_json",
-]
-
-[[package]]
-name = "apple-sys-helmer-fork"
-version = "0.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f03b84426ef7620d5554496dd85d4f80ab3d348cbc929d4ec8ea0ed6ddf6b075"
-dependencies = [
- "apple-bindgen-helmer-fork",
- "apple-sdk",
- "objc",
-]
-
[[package]]
name = "arbitrary"
version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7d5a26814d8dcb93b0e5a0ff3c6d80a8843bafb21b39e8e18a6f05471870e110"
+dependencies = [
+ "derive_arbitrary",
+]
[[package]]
name = "arg_enum_proc_macro"
@@ -542,15 +458,12 @@ dependencies = [
"itertools",
"lazy_static",
"lazycell",
- "log",
- "prettyplease",
"proc-macro2",
"quote",
"regex",
- "rustc-hash",
+ "rustc-hash 1.1.0",
"shlex",
"syn 2.0.75",
- "which",
]
[[package]]
@@ -916,46 +829,6 @@ dependencies = [
"libloading 0.8.5",
]
-[[package]]
-name = "clap"
-version = "4.5.16"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ed6719fffa43d0d87e5fd8caeab59be1554fb028cd30edc88fc4369b17971019"
-dependencies = [
- "clap_builder",
- "clap_derive",
-]
-
-[[package]]
-name = "clap_builder"
-version = "4.5.15"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "216aec2b177652e3846684cbfe25c9964d18ec45234f0f5da5157b207ed1aab6"
-dependencies = [
- "anstream",
- "anstyle",
- "clap_lex",
- "strsim",
-]
-
-[[package]]
-name = "clap_derive"
-version = "4.5.13"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "501d359d5f3dcaf6ecdeee48833ae73ec6e42723a1e52419c79abf9507eec0a0"
-dependencies = [
- "heck 0.5.0",
- "proc-macro2",
- "quote",
- "syn 2.0.75",
-]
-
-[[package]]
-name = "clap_lex"
-version = "0.7.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1462739cb27611015575c0c11df5df7601141071f07518d56fcc1be504cbec97"
-
[[package]]
name = "cocoa"
version = "0.20.2"
@@ -1047,12 +920,6 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b"
-[[package]]
-name = "colorchoice"
-version = "1.0.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d3fd119d74b830634cea2a0f58bbd0d54540518a14397557951e79340abc28c0"
-
[[package]]
name = "com"
version = "0.6.0"
@@ -1505,6 +1372,17 @@ dependencies = [
"syn 1.0.109",
]
+[[package]]
+name = "derive_arbitrary"
+version = "1.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "67e77553c4162a157adbf834ebae5b415acbecbeafc7a74b0e886657506a7611"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.75",
+]
+
[[package]]
name = "derive_more"
version = "0.99.18"
@@ -1566,6 +1444,7 @@ dependencies = [
"tauri-plugin-process",
"tauri-plugin-shell",
"tauri-plugin-store",
+ "tauri-plugin-updater",
"tauri-specta",
"tempfile",
"tokio",
@@ -1611,6 +1490,17 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b"
+[[package]]
+name = "displaydoc"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.75",
+]
+
[[package]]
name = "dlopen2"
version = "0.7.0"
@@ -1901,6 +1791,18 @@ dependencies = [
"rustc_version",
]
+[[package]]
+name = "filetime"
+version = "0.2.25"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "35c0522e981e68cbfa8c3f978441a5f34b30b96e146b33cd3359176b50fe8586"
+dependencies = [
+ "cfg-if 1.0.0",
+ "libc",
+ "libredox",
+ "windows-sys 0.59.0",
+]
+
[[package]]
name = "flate2"
version = "1.0.32"
@@ -2622,15 +2524,6 @@ version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dfa686283ad6dd069f105e5ab091b04c62850d3e4cf5d67debad1933f55023df"
-[[package]]
-name = "home"
-version = "0.5.9"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5"
-dependencies = [
- "windows-sys 0.52.0",
-]
-
[[package]]
name = "html5ever"
version = "0.26.0"
@@ -2733,6 +2626,7 @@ dependencies = [
"tokio",
"tokio-rustls",
"tower-service",
+ "webpki-roots",
]
[[package]]
@@ -2948,12 +2842,6 @@ dependencies = [
"once_cell",
]
-[[package]]
-name = "is_terminal_polyfill"
-version = "1.70.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"
-
[[package]]
name = "itertools"
version = "0.12.1"
@@ -3192,6 +3080,7 @@ checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d"
dependencies = [
"bitflags 2.6.0",
"libc",
+ "redox_syscall",
]
[[package]]
@@ -3418,6 +3307,12 @@ version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
+[[package]]
+name = "minisign-verify"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a05b5d0594e0cb1ad8cee3373018d2b84e25905dc75b2468114cc9a8e86cfc20"
+
[[package]]
name = "miniz_oxide"
version = "0.7.4"
@@ -3521,7 +3416,7 @@ dependencies = [
"hexf-parse",
"indexmap 2.5.0",
"log",
- "rustc-hash",
+ "rustc-hash 1.1.0",
"spirv",
"termcolor",
"thiserror",
@@ -3702,15 +3597,6 @@ dependencies = [
"minimal-lexical",
]
-[[package]]
-name = "nom8"
-version = "0.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ae01545c9c7fc4486ab7debaf2aad7003ac19431791868fb2e8066df97fad2f8"
-dependencies = [
- "memchr",
-]
-
[[package]]
name = "noop_proc_macro"
version = "0.3.0"
@@ -4471,16 +4357,6 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e8cf8e6a8aa66ce33f63993ffc4ea4271eb5b0530a9002db8455ea6050c77bfa"
-[[package]]
-name = "prettyplease"
-version = "0.2.20"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5f12335488a2f3b0a83b14edad48dca9879ce89b2edd10e80237e4e852dd645e"
-dependencies = [
- "proc-macro2",
- "syn 2.0.75",
-]
-
[[package]]
name = "proc-macro-crate"
version = "1.3.1"
@@ -4497,7 +4373,7 @@ version = "2.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b00f26d3400549137f92511a46ac1cd8ce37cb5598a96d382381458b992a5d24"
dependencies = [
- "toml_datetime 0.6.3",
+ "toml_datetime",
"toml_edit 0.20.2",
]
@@ -4583,6 +4459,54 @@ dependencies = [
"memchr",
]
+[[package]]
+name = "quinn"
+version = "0.11.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8c7c5fdde3cdae7203427dc4f0a68fe0ed09833edc525a03456b153b79828684"
+dependencies = [
+ "bytes",
+ "pin-project-lite",
+ "quinn-proto",
+ "quinn-udp",
+ "rustc-hash 2.0.0",
+ "rustls",
+ "socket2",
+ "thiserror",
+ "tokio",
+ "tracing",
+]
+
+[[package]]
+name = "quinn-proto"
+version = "0.11.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fadfaed2cd7f389d0161bb73eeb07b7b78f8691047a6f3e73caaeae55310a4a6"
+dependencies = [
+ "bytes",
+ "rand 0.8.5",
+ "ring",
+ "rustc-hash 2.0.0",
+ "rustls",
+ "slab",
+ "thiserror",
+ "tinyvec",
+ "tracing",
+]
+
+[[package]]
+name = "quinn-udp"
+version = "0.5.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4fe68c2e9e1a1234e218683dbdf9f9dfcb094113c5ac2b938dfcb9bab4c4140b"
+dependencies = [
+ "libc",
+ "once_cell",
+ "socket2",
+ "tracing",
+ "windows-sys 0.59.0",
+]
+
[[package]]
name = "quote"
version = "1.0.37"
@@ -4858,7 +4782,10 @@ dependencies = [
"once_cell",
"percent-encoding",
"pin-project-lite",
+ "quinn",
+ "rustls",
"rustls-pemfile",
+ "rustls-pki-types",
"serde",
"serde_json",
"serde_urlencoded",
@@ -4866,6 +4793,7 @@ dependencies = [
"system-configuration",
"tokio",
"tokio-native-tls",
+ "tokio-rustls",
"tokio-util",
"tower-service",
"url",
@@ -4873,6 +4801,7 @@ dependencies = [
"wasm-bindgen-futures",
"wasm-streams",
"web-sys",
+ "webpki-roots",
"windows-registry",
]
@@ -4936,6 +4865,12 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
+[[package]]
+name = "rustc-hash"
+version = "2.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "583034fd73374156e66797ed8e5b0d5690409c9226b22d87cb7f19821c05d152"
+
[[package]]
name = "rustc_version"
version = "0.4.0"
@@ -4965,6 +4900,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f2dabaac7466917e566adb06783a81ca48944c6898a1b08b9374106dd671f4c8"
dependencies = [
"once_cell",
+ "ring",
"rustls-pki-types",
"rustls-webpki",
"subtle",
@@ -5022,9 +4958,8 @@ dependencies = [
[[package]]
name = "scap"
version = "0.0.5"
-source = "git+https://github.com/CapSoftware/scap#fa776e0bb230ed092e6f31cb07512d50f1f18b40"
+source = "git+https://github.com/brendonovich/scap?rev=691bd88798d3#691bd88798d39478e09afb04d460e113097bb855"
dependencies = [
- "apple-sys-helmer-fork",
"cocoa 0.25.0",
"core-graphics-helmer-fork",
"dbus",
@@ -5768,6 +5703,17 @@ dependencies = [
"syn 2.0.75",
]
+[[package]]
+name = "tar"
+version = "0.4.41"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cb797dad5fb5b76fcf519e702f4a589483b5ef06567f160c392832c1f5e44909"
+dependencies = [
+ "filetime",
+ "libc",
+ "xattr",
+]
+
[[package]]
name = "target-lexicon"
version = "0.12.16"
@@ -6053,6 +5999,35 @@ dependencies = [
"thiserror",
]
+[[package]]
+name = "tauri-plugin-updater"
+version = "2.0.0-rc.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5b5f10ba18d2fc65e16bdf053b7beccb621dcf880c52d2ab08bdeb2d685e3e14"
+dependencies = [
+ "base64 0.22.1",
+ "dirs",
+ "flate2",
+ "futures-util",
+ "http",
+ "infer",
+ "minisign-verify",
+ "reqwest",
+ "semver",
+ "serde",
+ "serde_json",
+ "tar",
+ "tauri",
+ "tauri-plugin",
+ "tempfile",
+ "thiserror",
+ "time",
+ "tokio",
+ "url",
+ "windows-sys 0.52.0",
+ "zip",
+]
+
[[package]]
name = "tauri-runtime"
version = "2.0.0-rc.2"
@@ -6370,18 +6345,6 @@ dependencies = [
"tokio",
]
-[[package]]
-name = "toml"
-version = "0.6.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4fb9d890e4dc9298b70f740f615f2e05b9db37dce531f6b24fb77ac993f9f217"
-dependencies = [
- "serde",
- "serde_spanned",
- "toml_datetime 0.5.1",
- "toml_edit 0.18.1",
-]
-
[[package]]
name = "toml"
version = "0.7.8"
@@ -6390,7 +6353,7 @@ checksum = "dd79e69d3b627db300ff956027cc6c3798cef26d22526befdfcd12feeb6d2257"
dependencies = [
"serde",
"serde_spanned",
- "toml_datetime 0.6.3",
+ "toml_datetime",
"toml_edit 0.19.15",
]
@@ -6402,19 +6365,10 @@ checksum = "185d8ab0dfbb35cf1399a6344d8484209c088f75f8f68230da55d48d95d43e3d"
dependencies = [
"serde",
"serde_spanned",
- "toml_datetime 0.6.3",
+ "toml_datetime",
"toml_edit 0.20.2",
]
-[[package]]
-name = "toml_datetime"
-version = "0.5.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4553f467ac8e3d374bc9a177a26801e5d0f9b211aa1673fb137a403afd1c9cf5"
-dependencies = [
- "serde",
-]
-
[[package]]
name = "toml_datetime"
version = "0.6.3"
@@ -6424,19 +6378,6 @@ dependencies = [
"serde",
]
-[[package]]
-name = "toml_edit"
-version = "0.18.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "56c59d8dd7d0dcbc6428bf7aa2f0e823e26e43b3c9aca15bbc9475d23e5fa12b"
-dependencies = [
- "indexmap 1.9.3",
- "nom8",
- "serde",
- "serde_spanned",
- "toml_datetime 0.5.1",
-]
-
[[package]]
name = "toml_edit"
version = "0.19.15"
@@ -6446,7 +6387,7 @@ dependencies = [
"indexmap 2.5.0",
"serde",
"serde_spanned",
- "toml_datetime 0.6.3",
+ "toml_datetime",
"winnow",
]
@@ -6459,7 +6400,7 @@ dependencies = [
"indexmap 2.5.0",
"serde",
"serde_spanned",
- "toml_datetime 0.6.3",
+ "toml_datetime",
"winnow",
]
@@ -6747,12 +6688,6 @@ version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"
-[[package]]
-name = "utf8parse"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
-
[[package]]
name = "uuid"
version = "1.10.0"
@@ -6982,6 +6917,15 @@ dependencies = [
"system-deps",
]
+[[package]]
+name = "webpki-roots"
+version = "0.26.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0bd24728e5af82c6c4ec1b66ac4844bdf8156257fccda846ec58b42cd0cdbe6a"
+dependencies = [
+ "rustls-pki-types",
+]
+
[[package]]
name = "webview2-com"
version = "0.31.0"
@@ -7067,7 +7011,7 @@ dependencies = [
"parking_lot",
"profiling",
"raw-window-handle 0.6.2",
- "rustc-hash",
+ "rustc-hash 1.1.0",
"smallvec",
"thiserror",
"wgpu-hal",
@@ -7110,7 +7054,7 @@ dependencies = [
"range-alloc",
"raw-window-handle 0.6.2",
"renderdoc-sys",
- "rustc-hash",
+ "rustc-hash 1.1.0",
"smallvec",
"thiserror",
"wasm-bindgen",
@@ -7130,18 +7074,6 @@ dependencies = [
"web-sys",
]
-[[package]]
-name = "which"
-version = "4.4.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "87ba24419a2078cd2b0f2ede2691b6c66d8e47836da3b6db8265ebad47afbfc7"
-dependencies = [
- "either",
- "home",
- "once_cell",
- "rustix",
-]
-
[[package]]
name = "widestring"
version = "1.1.0"
@@ -7704,6 +7636,17 @@ dependencies = [
"pkg-config",
]
+[[package]]
+name = "xattr"
+version = "1.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8da84f1a25939b27f6820d92aed108f83ff920fdf11a7b19366c27c4cda81d4f"
+dependencies = [
+ "libc",
+ "linux-raw-sys",
+ "rustix",
+]
+
[[package]]
name = "xdg-home"
version = "1.3.0"
@@ -7815,6 +7758,21 @@ version = "1.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde"
+[[package]]
+name = "zip"
+version = "2.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dc5e4288ea4057ae23afc69a4472434a87a2495cafce6632fd1c4ec9f5cf3494"
+dependencies = [
+ "arbitrary",
+ "crc32fast",
+ "crossbeam-utils",
+ "displaydoc",
+ "indexmap 2.5.0",
+ "memchr",
+ "thiserror",
+]
+
[[package]]
name = "zune-core"
version = "0.4.12"
diff --git a/apps/desktop-solid/src-tauri/Cargo.toml b/apps/desktop-solid/src-tauri/Cargo.toml
index b527af908..124c7092c 100644
--- a/apps/desktop-solid/src-tauri/Cargo.toml
+++ b/apps/desktop-solid/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "desktop"
-version = "0.2.0"
+version = "0.3.0-alpha.0"
description = "A Tauri App"
authors = ["you"]
edition = "2021"
@@ -29,6 +29,7 @@ tauri-plugin-os = "2.0.0-rc.0"
tauri-plugin-process = "2.0.0-rc.0"
tauri-plugin-decorum = "1.0.0"
tauri-plugin-dialog = "2.0.0-rc.0"
+tauri-plugin-updater = "2.0.0-rc.0"
tauri-plugin-oauth = { git = "https://github.com/FabianLars/tauri-plugin-oauth", branch = "v2" }
tauri-specta = { version = "=2.0.0-rc.14", features = ["derive", "typescript"] }
@@ -40,7 +41,7 @@ swift-rs = "1.0.6"
nix = { version = "0.29.0", features = ["fs"] }
tokio = { version = "1.39.2", features = ["macros", "process", "fs"] }
uuid = { version = "1.10.0", features = ["v4"] }
-scap = { git = "https://github.com/CapSoftware/scap" }
+scap = { git = "https://github.com/CapSoftware/scap", rev = "691bd88798d3" }
ffmpeg-sidecar = { git = "https://github.com/CapSoftware/ffmpeg-sidecar", branch = "main" }
wgpu = "22.1.0"
bytemuck = { version = "1.7", features = ["derive"] }
diff --git a/apps/desktop-solid/src-tauri/tauri.conf.json b/apps/desktop-solid/src-tauri/tauri.conf.json
index 3eb2be5f7..12f783cd7 100644
--- a/apps/desktop-solid/src-tauri/tauri.conf.json
+++ b/apps/desktop-solid/src-tauri/tauri.conf.json
@@ -1,7 +1,6 @@
{
"$schema": "../node_modules/@tauri-apps/cli/schema.json",
"productName": "Cap",
- "version": "0.1.0",
"identifier": "so.cap.desktop-solid",
"build": {
"beforeDevCommand": "pnpm localdev",
@@ -24,7 +23,8 @@
"endpoints": [
"https://cdn.crabnebula.app/update/cap/cap/{{target}}-{{arch}}/{{current_version}}"
],
- "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IERFOUVERkYwMENGRDdDM0EKUldRNmZQME04TitlM3AvZ3cwRVVET1ZMTjl4OU1COFJQM2NEVzFONzkzc2UxQlVUejBDVm4xS1YK"
+ "dialog": true,
+ "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEUyOTAzOTdFNzJFQkRFOTMKUldTVDN1dHlmam1RNHFXb1VYTXlrQk1iMFFkcjN0YitqZlA5WnZNY0ZtQ1dvM1dxK211M3VIYUQK"
}
},
"bundle": {