Compare commits

..

No commits in common. "main" and "tauri-build-v0.1.2-beta.2" have entirely different histories.

53 changed files with 4712 additions and 31783 deletions

View File

@ -0,0 +1,5 @@
---
"tauri-build": patch
---
Update Tauri CLI to version `1.0.0-rc.10`

View File

@ -4,15 +4,14 @@
"github action": {
"version": true,
"preversion": [
"pnpm install --no-optional --no-frozen-lockfile",
"pnpm install --no-optional",
"pnpm build",
"pnpm package"
],
"getPublishedVersion": "git describe --tags --abbrev=0",
"getPublishedVersion": "git tag v${ pkgFile.version } 2> /dev/null || echo ${ pkgFile.version }",
"publish": [
"git tag v${ pkgFile.versionMajor } -f",
"git tag v${ pkgFile.versionMajor }.${ pkgFile.versionMinor } -f",
"git tag v${ pkgFile.version } -f",
"git push --tags -f"
]
}

View File

@ -0,0 +1,5 @@
---
"tauri-build": patch
---
Call the correct tauri subcommand

View File

@ -0,0 +1,5 @@
---
"tauri-build": patch
---
Include Tauri CLI binaries for all supported platforms.

View File

@ -0,0 +1,5 @@
---
"tauri-build": patch
---
Correctly change working dir to projectPath when configured.

9
.changes/pre.json Normal file
View File

@ -0,0 +1,9 @@
{
"tag": "beta",
"changes": [
".changes/chore-update-tauri.md",
".changes/fix-build-args.md",
".changes/fix-cli-on-platforms.md",
".changes/fix-project-path.md"
]
}

View File

@ -1,5 +1,5 @@
{
"plugins": ["@typescript-eslint"],
"plugins": ["jest", "@typescript-eslint"],
"extends": ["plugin:github/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
@ -49,6 +49,7 @@
},
"env": {
"node": true,
"es6": true
"es6": true,
"jest/globals": true
}
}

View File

@ -38,11 +38,11 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v3
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
source-root: src
@ -54,7 +54,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3
uses: github/codeql-action/autobuild@v2
# Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
@ -68,4 +68,4 @@ jobs:
# make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@v2

View File

@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
with:
fetch-depth: 0 # required for use of git history
- name: covector status

View File

@ -19,18 +19,18 @@ jobs:
successfulPublish: ${{ steps.covector.outputs.successfulPublish }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: git config
run: |
git config --global user.name "${{ github.event.pusher.name }}"
git config --global user.email "${{ github.event.pusher.email }}"
- uses: actions/setup-node@v4.0.1
- uses: actions/setup-node@v3.1.1
with:
node-version: 20
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- uses: pnpm/action-setup@v2.4.1
- uses: pnpm/action-setup@v2.2.1
name: Install pnpm
id: pnpm-install
with:
@ -39,7 +39,7 @@ jobs:
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
@ -56,12 +56,12 @@ jobs:
createRelease: true
- name: Create Pull Request With Versions Bumped
id: cpr
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v4
if: steps.covector.outputs.commandRan == 'version'
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: 'Publish New Versions'
commit-message: 'publish new versions'
labels: 'version updates'
branch: 'release'
title: "Publish New Versions"
commit-message: "publish new versions"
labels: "version updates"
branch: "release"
body: ${{ steps.covector.outputs.change }}

View File

@ -1,78 +0,0 @@
name: 'Test'
on:
workflow_dispatch:
push:
branches:
- main
paths:
- '.github/workflows/test.yml'
- 'src/**'
- 'test/**'
- 'package.json'
- 'pnpm-lock.yaml'
pull_request:
paths:
- '.github/workflows/test.yml'
- 'src/**'
- 'test/**'
- 'package.json'
- 'pnpm-lock.yaml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-binaries:
strategy:
fail-fast: false
matrix:
platform:
- os: ubuntu-latest
rust_target: x86_64-unknown-linux-gnu
- os: macos-latest
rust_target: x86_64-apple-darwin
- os: macos-latest
rust_target: aarch64-apple-darwin
- os: windows-latest
rust_target: x86_64-pc-windows-msvc
runs-on: ${{ matrix.platform.os }}
steps:
- uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: 'Setup Rust'
uses: actions-rs/toolchain@v1
with:
default: true
override: true
profile: minimal
toolchain: stable
target: ${{ matrix.platform.rust_target }}
- uses: Swatinem/rust-cache@v2
- name: install dependencies (ubuntu only)
if: matrix.platform.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
- uses: JonasKruckenberg/tauri-build@main
id: tauri_build
with:
target: ${{ matrix.platform.rust_target }}
projectPath: ./test/fixture
- run: |
echo "${{ steps.tauri_build.outputs.artifacts }}"
# The artifacts output can now be used to upload the artifacts
- uses: actions/upload-artifact@v3
with:
name: artifacts
path: "${{ join(fromJSON(steps.tauri_build.outputs.artifacts), '\n') }}"

2
.gitignore vendored
View File

@ -97,5 +97,3 @@ Thumbs.db
# Ignore built ts files
__tests__/runner/*
lib/**/*
.idea

View File

@ -1,345 +1,5 @@
# Changelog
## \[1.5.11]
- Bump Tauri to 1.5.11
- [d749ebb](https://github.com/JonasKruckenberg/tauri-build/commit/d749ebb9bc9fe181aa1f61f294b323c751e9f09e) Create bump-tauri.md on 2022-09-24
- [5cfbb48](https://github.com/JonasKruckenberg/tauri-build/commit/5cfbb48254bda2944898618864feab9ce333e555) publish new versions on 2022-09-24
- [ae03b5c](https://github.com/JonasKruckenberg/tauri-build/commit/ae03b5c9d2dfe37115cdf1ce8735b94ed6df1b1d) bump tauri on 2024-03-27
- [da63165](https://github.com/JonasKruckenberg/tauri-build/commit/da631651080a3f6a054a04689aabcced0fb27166) publish new versions on 2024-03-27
- [2143a74](https://github.com/JonasKruckenberg/tauri-build/commit/2143a74716c973189a1c68171024c772ce99f962) bump tauri on 2024-03-27
- [ae1bfe9](https://github.com/JonasKruckenberg/tauri-build/commit/ae1bfe9746502983323c5b20fc273fca9ddc2f83) publish new versions on 2024-03-27
- [1a70e16](https://github.com/JonasKruckenberg/tauri-build/commit/1a70e162c264affc4fe3f3acf9dbea4a0717a508) bump tauri to 1.5.2 on 2024-03-27
- [c450190](https://github.com/JonasKruckenberg/tauri-build/commit/c450190ba4fafae76975e9757a9d02a34262eb17) Update bump-tauri.md on 2024-03-27
- [a712643](https://github.com/JonasKruckenberg/tauri-build/commit/a712643d07f25c79a741552ea2f6f425c8c201ba) publish new versions on 2024-03-27
- [c761657](https://github.com/JonasKruckenberg/tauri-build/commit/c761657ea88b1f42b9fc4b5c00f7b712531ed8f5) bump tauri to 1.5.4 on 2024-03-27
- [b276ab4](https://github.com/JonasKruckenberg/tauri-build/commit/b276ab4f56979d0c6def87108ca74b8953fa1121) publish new versions on 2024-03-27
- [e6488f6](https://github.com/JonasKruckenberg/tauri-build/commit/e6488f6ca27d6ecb050073bc1acf6969cc846362) bump tauri to 1.5.5 on 2024-03-27
- [adafea7](https://github.com/JonasKruckenberg/tauri-build/commit/adafea7f538516a594a02b2faa14fe02b871afc9) publish new versions on 2024-03-27
- [d204133](https://github.com/JonasKruckenberg/tauri-build/commit/d20413310668195c4b70fcde98fe2ff11a5beb76) bump tauri to 1.5.6 on 2024-03-27
- [60bf491](https://github.com/JonasKruckenberg/tauri-build/commit/60bf4916f05d542730244eaab1544456cb465745) publish new versions on 2024-03-27
- [f912eb2](https://github.com/JonasKruckenberg/tauri-build/commit/f912eb2f75a12645f5411355019490ec200fb755) bump tauri to 1.5.7 on 2024-03-27
- [60da836](https://github.com/JonasKruckenberg/tauri-build/commit/60da836ab0fa46ae8f01076875952eb17c4c7e22) publish new versions on 2024-03-27
- [3af1940](https://github.com/JonasKruckenberg/tauri-build/commit/3af1940371c9f65d0d46fe2d2cc64b517f7a704a) bump tauri to 1.5.8 on 2024-03-27
- [9724fd9](https://github.com/JonasKruckenberg/tauri-build/commit/9724fd9351dcd083aa242854d3da65306e5d36c5) publish new versions on 2024-03-27
- [4ef3b52](https://github.com/JonasKruckenberg/tauri-build/commit/4ef3b52b28cff111f75bf9f22f20f48cc48e8be2) bump tauri to 1.5.11 on 2024-03-27
- [5423222](https://github.com/JonasKruckenberg/tauri-build/commit/54232224730a63599b526de8543f553a65a9ac33) publish new versions on 2024-03-27
- [3fda59d](https://github.com/JonasKruckenberg/tauri-build/commit/3fda59d57a1ae7009850f6b71d78262b97578f46) bump tauri to 1.5.10 on 2024-03-27
- [39921cb](https://github.com/JonasKruckenberg/tauri-build/commit/39921cb0909bca56a36ee59de7fcbf3728e63189) publish new versions on 2024-03-27
- [d87106e](https://github.com/JonasKruckenberg/tauri-build/commit/d87106eb09dc3049ecfd30c4f6ca17b462bc0eb8) bump tauri to 1.5.11 on 2024-03-27
- [f66ea66](https://github.com/JonasKruckenberg/tauri-build/commit/f66ea660359dba143165ce2354a72b103fdb7854) Revert "bump tauri to 1.5.11" on 2024-03-27
- [ac9a4e1](https://github.com/JonasKruckenberg/tauri-build/commit/ac9a4e15515f1abd52d8f76a82d1e6b8aed43ba8) Revert "Revert "bump tauri to 1.5.11"" on 2024-03-27
## \[1.5.10]
- Bump Tauri to 1.5.10
- [d749ebb](https://github.com/JonasKruckenberg/tauri-build/commit/d749ebb9bc9fe181aa1f61f294b323c751e9f09e) Create bump-tauri.md on 2022-09-24
- [5cfbb48](https://github.com/JonasKruckenberg/tauri-build/commit/5cfbb48254bda2944898618864feab9ce333e555) publish new versions on 2022-09-24
- [ae03b5c](https://github.com/JonasKruckenberg/tauri-build/commit/ae03b5c9d2dfe37115cdf1ce8735b94ed6df1b1d) bump tauri on 2024-03-27
- [da63165](https://github.com/JonasKruckenberg/tauri-build/commit/da631651080a3f6a054a04689aabcced0fb27166) publish new versions on 2024-03-27
- [2143a74](https://github.com/JonasKruckenberg/tauri-build/commit/2143a74716c973189a1c68171024c772ce99f962) bump tauri on 2024-03-27
- [ae1bfe9](https://github.com/JonasKruckenberg/tauri-build/commit/ae1bfe9746502983323c5b20fc273fca9ddc2f83) publish new versions on 2024-03-27
- [1a70e16](https://github.com/JonasKruckenberg/tauri-build/commit/1a70e162c264affc4fe3f3acf9dbea4a0717a508) bump tauri to 1.5.2 on 2024-03-27
- [c450190](https://github.com/JonasKruckenberg/tauri-build/commit/c450190ba4fafae76975e9757a9d02a34262eb17) Update bump-tauri.md on 2024-03-27
- [a712643](https://github.com/JonasKruckenberg/tauri-build/commit/a712643d07f25c79a741552ea2f6f425c8c201ba) publish new versions on 2024-03-27
- [c761657](https://github.com/JonasKruckenberg/tauri-build/commit/c761657ea88b1f42b9fc4b5c00f7b712531ed8f5) bump tauri to 1.5.4 on 2024-03-27
- [b276ab4](https://github.com/JonasKruckenberg/tauri-build/commit/b276ab4f56979d0c6def87108ca74b8953fa1121) publish new versions on 2024-03-27
- [e6488f6](https://github.com/JonasKruckenberg/tauri-build/commit/e6488f6ca27d6ecb050073bc1acf6969cc846362) bump tauri to 1.5.5 on 2024-03-27
- [adafea7](https://github.com/JonasKruckenberg/tauri-build/commit/adafea7f538516a594a02b2faa14fe02b871afc9) publish new versions on 2024-03-27
- [d204133](https://github.com/JonasKruckenberg/tauri-build/commit/d20413310668195c4b70fcde98fe2ff11a5beb76) bump tauri to 1.5.6 on 2024-03-27
- [60bf491](https://github.com/JonasKruckenberg/tauri-build/commit/60bf4916f05d542730244eaab1544456cb465745) publish new versions on 2024-03-27
- [f912eb2](https://github.com/JonasKruckenberg/tauri-build/commit/f912eb2f75a12645f5411355019490ec200fb755) bump tauri to 1.5.7 on 2024-03-27
- [60da836](https://github.com/JonasKruckenberg/tauri-build/commit/60da836ab0fa46ae8f01076875952eb17c4c7e22) publish new versions on 2024-03-27
- [3af1940](https://github.com/JonasKruckenberg/tauri-build/commit/3af1940371c9f65d0d46fe2d2cc64b517f7a704a) bump tauri to 1.5.8 on 2024-03-27
- [9724fd9](https://github.com/JonasKruckenberg/tauri-build/commit/9724fd9351dcd083aa242854d3da65306e5d36c5) publish new versions on 2024-03-27
- [4ef3b52](https://github.com/JonasKruckenberg/tauri-build/commit/4ef3b52b28cff111f75bf9f22f20f48cc48e8be2) bump tauri to 1.5.11 on 2024-03-27
- [5423222](https://github.com/JonasKruckenberg/tauri-build/commit/54232224730a63599b526de8543f553a65a9ac33) publish new versions on 2024-03-27
- [3fda59d](https://github.com/JonasKruckenberg/tauri-build/commit/3fda59d57a1ae7009850f6b71d78262b97578f46) bump tauri to 1.5.10 on 2024-03-27
## \[1.5.9]
- Bump Tauri to 1.5.9
- [d749ebb](https://github.com/JonasKruckenberg/tauri-build/commit/d749ebb9bc9fe181aa1f61f294b323c751e9f09e) Create bump-tauri.md on 2022-09-24
- [5cfbb48](https://github.com/JonasKruckenberg/tauri-build/commit/5cfbb48254bda2944898618864feab9ce333e555) publish new versions on 2022-09-24
- [ae03b5c](https://github.com/JonasKruckenberg/tauri-build/commit/ae03b5c9d2dfe37115cdf1ce8735b94ed6df1b1d) bump tauri on 2024-03-27
- [da63165](https://github.com/JonasKruckenberg/tauri-build/commit/da631651080a3f6a054a04689aabcced0fb27166) publish new versions on 2024-03-27
- [2143a74](https://github.com/JonasKruckenberg/tauri-build/commit/2143a74716c973189a1c68171024c772ce99f962) bump tauri on 2024-03-27
- [ae1bfe9](https://github.com/JonasKruckenberg/tauri-build/commit/ae1bfe9746502983323c5b20fc273fca9ddc2f83) publish new versions on 2024-03-27
- [1a70e16](https://github.com/JonasKruckenberg/tauri-build/commit/1a70e162c264affc4fe3f3acf9dbea4a0717a508) bump tauri to 1.5.2 on 2024-03-27
- [c450190](https://github.com/JonasKruckenberg/tauri-build/commit/c450190ba4fafae76975e9757a9d02a34262eb17) Update bump-tauri.md on 2024-03-27
- [a712643](https://github.com/JonasKruckenberg/tauri-build/commit/a712643d07f25c79a741552ea2f6f425c8c201ba) publish new versions on 2024-03-27
- [c761657](https://github.com/JonasKruckenberg/tauri-build/commit/c761657ea88b1f42b9fc4b5c00f7b712531ed8f5) bump tauri to 1.5.4 on 2024-03-27
- [b276ab4](https://github.com/JonasKruckenberg/tauri-build/commit/b276ab4f56979d0c6def87108ca74b8953fa1121) publish new versions on 2024-03-27
- [e6488f6](https://github.com/JonasKruckenberg/tauri-build/commit/e6488f6ca27d6ecb050073bc1acf6969cc846362) bump tauri to 1.5.5 on 2024-03-27
- [adafea7](https://github.com/JonasKruckenberg/tauri-build/commit/adafea7f538516a594a02b2faa14fe02b871afc9) publish new versions on 2024-03-27
- [d204133](https://github.com/JonasKruckenberg/tauri-build/commit/d20413310668195c4b70fcde98fe2ff11a5beb76) bump tauri to 1.5.6 on 2024-03-27
- [60bf491](https://github.com/JonasKruckenberg/tauri-build/commit/60bf4916f05d542730244eaab1544456cb465745) publish new versions on 2024-03-27
- [f912eb2](https://github.com/JonasKruckenberg/tauri-build/commit/f912eb2f75a12645f5411355019490ec200fb755) bump tauri to 1.5.7 on 2024-03-27
- [60da836](https://github.com/JonasKruckenberg/tauri-build/commit/60da836ab0fa46ae8f01076875952eb17c4c7e22) publish new versions on 2024-03-27
- [3af1940](https://github.com/JonasKruckenberg/tauri-build/commit/3af1940371c9f65d0d46fe2d2cc64b517f7a704a) bump tauri to 1.5.8 on 2024-03-27
- [9724fd9](https://github.com/JonasKruckenberg/tauri-build/commit/9724fd9351dcd083aa242854d3da65306e5d36c5) publish new versions on 2024-03-27
- [4ef3b52](https://github.com/JonasKruckenberg/tauri-build/commit/4ef3b52b28cff111f75bf9f22f20f48cc48e8be2) bump tauri to 1.5.11 on 2024-03-27
## \[1.5.8]
- Bump Tauri CLI to 1.5.8
- [d749ebb](https://github.com/JonasKruckenberg/tauri-build/commit/d749ebb9bc9fe181aa1f61f294b323c751e9f09e) Create bump-tauri.md on 2022-09-24
- [5cfbb48](https://github.com/JonasKruckenberg/tauri-build/commit/5cfbb48254bda2944898618864feab9ce333e555) publish new versions on 2022-09-24
- [ae03b5c](https://github.com/JonasKruckenberg/tauri-build/commit/ae03b5c9d2dfe37115cdf1ce8735b94ed6df1b1d) bump tauri on 2024-03-27
- [da63165](https://github.com/JonasKruckenberg/tauri-build/commit/da631651080a3f6a054a04689aabcced0fb27166) publish new versions on 2024-03-27
- [2143a74](https://github.com/JonasKruckenberg/tauri-build/commit/2143a74716c973189a1c68171024c772ce99f962) bump tauri on 2024-03-27
- [ae1bfe9](https://github.com/JonasKruckenberg/tauri-build/commit/ae1bfe9746502983323c5b20fc273fca9ddc2f83) publish new versions on 2024-03-27
- [1a70e16](https://github.com/JonasKruckenberg/tauri-build/commit/1a70e162c264affc4fe3f3acf9dbea4a0717a508) bump tauri to 1.5.2 on 2024-03-27
- [c450190](https://github.com/JonasKruckenberg/tauri-build/commit/c450190ba4fafae76975e9757a9d02a34262eb17) Update bump-tauri.md on 2024-03-27
- [a712643](https://github.com/JonasKruckenberg/tauri-build/commit/a712643d07f25c79a741552ea2f6f425c8c201ba) publish new versions on 2024-03-27
- [c761657](https://github.com/JonasKruckenberg/tauri-build/commit/c761657ea88b1f42b9fc4b5c00f7b712531ed8f5) bump tauri to 1.5.4 on 2024-03-27
- [b276ab4](https://github.com/JonasKruckenberg/tauri-build/commit/b276ab4f56979d0c6def87108ca74b8953fa1121) publish new versions on 2024-03-27
- [e6488f6](https://github.com/JonasKruckenberg/tauri-build/commit/e6488f6ca27d6ecb050073bc1acf6969cc846362) bump tauri to 1.5.5 on 2024-03-27
- [adafea7](https://github.com/JonasKruckenberg/tauri-build/commit/adafea7f538516a594a02b2faa14fe02b871afc9) publish new versions on 2024-03-27
- [d204133](https://github.com/JonasKruckenberg/tauri-build/commit/d20413310668195c4b70fcde98fe2ff11a5beb76) bump tauri to 1.5.6 on 2024-03-27
- [60bf491](https://github.com/JonasKruckenberg/tauri-build/commit/60bf4916f05d542730244eaab1544456cb465745) publish new versions on 2024-03-27
- [f912eb2](https://github.com/JonasKruckenberg/tauri-build/commit/f912eb2f75a12645f5411355019490ec200fb755) bump tauri to 1.5.7 on 2024-03-27
- [60da836](https://github.com/JonasKruckenberg/tauri-build/commit/60da836ab0fa46ae8f01076875952eb17c4c7e22) publish new versions on 2024-03-27
- [3af1940](https://github.com/JonasKruckenberg/tauri-build/commit/3af1940371c9f65d0d46fe2d2cc64b517f7a704a) bump tauri to 1.5.8 on 2024-03-27
## \[1.5.7]
- Bump Tauri CLI to 1.5.7
- [d749ebb](https://github.com/JonasKruckenberg/tauri-build/commit/d749ebb9bc9fe181aa1f61f294b323c751e9f09e) Create bump-tauri.md on 2022-09-24
- [5cfbb48](https://github.com/JonasKruckenberg/tauri-build/commit/5cfbb48254bda2944898618864feab9ce333e555) publish new versions on 2022-09-24
- [ae03b5c](https://github.com/JonasKruckenberg/tauri-build/commit/ae03b5c9d2dfe37115cdf1ce8735b94ed6df1b1d) bump tauri on 2024-03-27
- [da63165](https://github.com/JonasKruckenberg/tauri-build/commit/da631651080a3f6a054a04689aabcced0fb27166) publish new versions on 2024-03-27
- [2143a74](https://github.com/JonasKruckenberg/tauri-build/commit/2143a74716c973189a1c68171024c772ce99f962) bump tauri on 2024-03-27
- [ae1bfe9](https://github.com/JonasKruckenberg/tauri-build/commit/ae1bfe9746502983323c5b20fc273fca9ddc2f83) publish new versions on 2024-03-27
- [1a70e16](https://github.com/JonasKruckenberg/tauri-build/commit/1a70e162c264affc4fe3f3acf9dbea4a0717a508) bump tauri to 1.5.2 on 2024-03-27
- [c450190](https://github.com/JonasKruckenberg/tauri-build/commit/c450190ba4fafae76975e9757a9d02a34262eb17) Update bump-tauri.md on 2024-03-27
- [a712643](https://github.com/JonasKruckenberg/tauri-build/commit/a712643d07f25c79a741552ea2f6f425c8c201ba) publish new versions on 2024-03-27
- [c761657](https://github.com/JonasKruckenberg/tauri-build/commit/c761657ea88b1f42b9fc4b5c00f7b712531ed8f5) bump tauri to 1.5.4 on 2024-03-27
- [b276ab4](https://github.com/JonasKruckenberg/tauri-build/commit/b276ab4f56979d0c6def87108ca74b8953fa1121) publish new versions on 2024-03-27
- [e6488f6](https://github.com/JonasKruckenberg/tauri-build/commit/e6488f6ca27d6ecb050073bc1acf6969cc846362) bump tauri to 1.5.5 on 2024-03-27
- [adafea7](https://github.com/JonasKruckenberg/tauri-build/commit/adafea7f538516a594a02b2faa14fe02b871afc9) publish new versions on 2024-03-27
- [d204133](https://github.com/JonasKruckenberg/tauri-build/commit/d20413310668195c4b70fcde98fe2ff11a5beb76) bump tauri to 1.5.6 on 2024-03-27
- [60bf491](https://github.com/JonasKruckenberg/tauri-build/commit/60bf4916f05d542730244eaab1544456cb465745) publish new versions on 2024-03-27
- [f912eb2](https://github.com/JonasKruckenberg/tauri-build/commit/f912eb2f75a12645f5411355019490ec200fb755) bump tauri to 1.5.7 on 2024-03-27
## \[1.5.6]
- Bump Tauri CLI to 1.5.6
- [d749ebb](https://github.com/JonasKruckenberg/tauri-build/commit/d749ebb9bc9fe181aa1f61f294b323c751e9f09e) Create bump-tauri.md on 2022-09-24
- [5cfbb48](https://github.com/JonasKruckenberg/tauri-build/commit/5cfbb48254bda2944898618864feab9ce333e555) publish new versions on 2022-09-24
- [ae03b5c](https://github.com/JonasKruckenberg/tauri-build/commit/ae03b5c9d2dfe37115cdf1ce8735b94ed6df1b1d) bump tauri on 2024-03-27
- [da63165](https://github.com/JonasKruckenberg/tauri-build/commit/da631651080a3f6a054a04689aabcced0fb27166) publish new versions on 2024-03-27
- [2143a74](https://github.com/JonasKruckenberg/tauri-build/commit/2143a74716c973189a1c68171024c772ce99f962) bump tauri on 2024-03-27
- [ae1bfe9](https://github.com/JonasKruckenberg/tauri-build/commit/ae1bfe9746502983323c5b20fc273fca9ddc2f83) publish new versions on 2024-03-27
- [1a70e16](https://github.com/JonasKruckenberg/tauri-build/commit/1a70e162c264affc4fe3f3acf9dbea4a0717a508) bump tauri to 1.5.2 on 2024-03-27
- [c450190](https://github.com/JonasKruckenberg/tauri-build/commit/c450190ba4fafae76975e9757a9d02a34262eb17) Update bump-tauri.md on 2024-03-27
- [a712643](https://github.com/JonasKruckenberg/tauri-build/commit/a712643d07f25c79a741552ea2f6f425c8c201ba) publish new versions on 2024-03-27
- [c761657](https://github.com/JonasKruckenberg/tauri-build/commit/c761657ea88b1f42b9fc4b5c00f7b712531ed8f5) bump tauri to 1.5.4 on 2024-03-27
- [b276ab4](https://github.com/JonasKruckenberg/tauri-build/commit/b276ab4f56979d0c6def87108ca74b8953fa1121) publish new versions on 2024-03-27
- [e6488f6](https://github.com/JonasKruckenberg/tauri-build/commit/e6488f6ca27d6ecb050073bc1acf6969cc846362) bump tauri to 1.5.5 on 2024-03-27
- [adafea7](https://github.com/JonasKruckenberg/tauri-build/commit/adafea7f538516a594a02b2faa14fe02b871afc9) publish new versions on 2024-03-27
- [d204133](https://github.com/JonasKruckenberg/tauri-build/commit/d20413310668195c4b70fcde98fe2ff11a5beb76) bump tauri to 1.5.6 on 2024-03-27
## \[1.5.5]
- Bump Tauri CLI to 1.5.5
- [d749ebb](https://github.com/JonasKruckenberg/tauri-build/commit/d749ebb9bc9fe181aa1f61f294b323c751e9f09e) Create bump-tauri.md on 2022-09-24
- [5cfbb48](https://github.com/JonasKruckenberg/tauri-build/commit/5cfbb48254bda2944898618864feab9ce333e555) publish new versions on 2022-09-24
- [ae03b5c](https://github.com/JonasKruckenberg/tauri-build/commit/ae03b5c9d2dfe37115cdf1ce8735b94ed6df1b1d) bump tauri on 2024-03-27
- [da63165](https://github.com/JonasKruckenberg/tauri-build/commit/da631651080a3f6a054a04689aabcced0fb27166) publish new versions on 2024-03-27
- [2143a74](https://github.com/JonasKruckenberg/tauri-build/commit/2143a74716c973189a1c68171024c772ce99f962) bump tauri on 2024-03-27
- [ae1bfe9](https://github.com/JonasKruckenberg/tauri-build/commit/ae1bfe9746502983323c5b20fc273fca9ddc2f83) publish new versions on 2024-03-27
- [1a70e16](https://github.com/JonasKruckenberg/tauri-build/commit/1a70e162c264affc4fe3f3acf9dbea4a0717a508) bump tauri to 1.5.2 on 2024-03-27
- [c450190](https://github.com/JonasKruckenberg/tauri-build/commit/c450190ba4fafae76975e9757a9d02a34262eb17) Update bump-tauri.md on 2024-03-27
- [a712643](https://github.com/JonasKruckenberg/tauri-build/commit/a712643d07f25c79a741552ea2f6f425c8c201ba) publish new versions on 2024-03-27
- [c761657](https://github.com/JonasKruckenberg/tauri-build/commit/c761657ea88b1f42b9fc4b5c00f7b712531ed8f5) bump tauri to 1.5.4 on 2024-03-27
- [b276ab4](https://github.com/JonasKruckenberg/tauri-build/commit/b276ab4f56979d0c6def87108ca74b8953fa1121) publish new versions on 2024-03-27
- [e6488f6](https://github.com/JonasKruckenberg/tauri-build/commit/e6488f6ca27d6ecb050073bc1acf6969cc846362) bump tauri to 1.5.5 on 2024-03-27
## \[1.5.4]
- Bump Tauri CLI to 1.5.4
- [d749ebb](https://github.com/JonasKruckenberg/tauri-build/commit/d749ebb9bc9fe181aa1f61f294b323c751e9f09e) Create bump-tauri.md on 2022-09-24
- [5cfbb48](https://github.com/JonasKruckenberg/tauri-build/commit/5cfbb48254bda2944898618864feab9ce333e555) publish new versions on 2022-09-24
- [ae03b5c](https://github.com/JonasKruckenberg/tauri-build/commit/ae03b5c9d2dfe37115cdf1ce8735b94ed6df1b1d) bump tauri on 2024-03-27
- [da63165](https://github.com/JonasKruckenberg/tauri-build/commit/da631651080a3f6a054a04689aabcced0fb27166) publish new versions on 2024-03-27
- [2143a74](https://github.com/JonasKruckenberg/tauri-build/commit/2143a74716c973189a1c68171024c772ce99f962) bump tauri on 2024-03-27
- [ae1bfe9](https://github.com/JonasKruckenberg/tauri-build/commit/ae1bfe9746502983323c5b20fc273fca9ddc2f83) publish new versions on 2024-03-27
- [1a70e16](https://github.com/JonasKruckenberg/tauri-build/commit/1a70e162c264affc4fe3f3acf9dbea4a0717a508) bump tauri to 1.5.2 on 2024-03-27
- [c450190](https://github.com/JonasKruckenberg/tauri-build/commit/c450190ba4fafae76975e9757a9d02a34262eb17) Update bump-tauri.md on 2024-03-27
- [a712643](https://github.com/JonasKruckenberg/tauri-build/commit/a712643d07f25c79a741552ea2f6f425c8c201ba) publish new versions on 2024-03-27
- [c761657](https://github.com/JonasKruckenberg/tauri-build/commit/c761657ea88b1f42b9fc4b5c00f7b712531ed8f5) bump tauri to 1.5.4 on 2024-03-27
## \[1.5.2]
- Bump Tauri CLI to 1.5.2
- [d749ebb](https://github.com/JonasKruckenberg/tauri-build/commit/d749ebb9bc9fe181aa1f61f294b323c751e9f09e) Create bump-tauri.md on 2022-09-24
- [5cfbb48](https://github.com/JonasKruckenberg/tauri-build/commit/5cfbb48254bda2944898618864feab9ce333e555) publish new versions on 2022-09-24
- [ae03b5c](https://github.com/JonasKruckenberg/tauri-build/commit/ae03b5c9d2dfe37115cdf1ce8735b94ed6df1b1d) bump tauri on 2024-03-27
- [da63165](https://github.com/JonasKruckenberg/tauri-build/commit/da631651080a3f6a054a04689aabcced0fb27166) publish new versions on 2024-03-27
- [2143a74](https://github.com/JonasKruckenberg/tauri-build/commit/2143a74716c973189a1c68171024c772ce99f962) bump tauri on 2024-03-27
- [ae1bfe9](https://github.com/JonasKruckenberg/tauri-build/commit/ae1bfe9746502983323c5b20fc273fca9ddc2f83) publish new versions on 2024-03-27
- [1a70e16](https://github.com/JonasKruckenberg/tauri-build/commit/1a70e162c264affc4fe3f3acf9dbea4a0717a508) bump tauri to 1.5.2 on 2024-03-27
- [c450190](https://github.com/JonasKruckenberg/tauri-build/commit/c450190ba4fafae76975e9757a9d02a34262eb17) Update bump-tauri.md on 2024-03-27
## \[1.5.1]
- Bump Tauri CLI to 1.5.1
- [d749ebb](https://github.com/JonasKruckenberg/tauri-build/commit/d749ebb9bc9fe181aa1f61f294b323c751e9f09e) Create bump-tauri.md on 2022-09-24
- [5cfbb48](https://github.com/JonasKruckenberg/tauri-build/commit/5cfbb48254bda2944898618864feab9ce333e555) publish new versions on 2022-09-24
- [ae03b5c](https://github.com/JonasKruckenberg/tauri-build/commit/ae03b5c9d2dfe37115cdf1ce8735b94ed6df1b1d) bump tauri on 2024-03-27
- [da63165](https://github.com/JonasKruckenberg/tauri-build/commit/da631651080a3f6a054a04689aabcced0fb27166) publish new versions on 2024-03-27
- [2143a74](https://github.com/JonasKruckenberg/tauri-build/commit/2143a74716c973189a1c68171024c772ce99f962) bump tauri on 2024-03-27
## \[1.5.0]
- Bump Tauri CLI to 1.5.0
- [d749ebb](https://github.com/JonasKruckenberg/tauri-build/commit/d749ebb9bc9fe181aa1f61f294b323c751e9f09e) Create bump-tauri.md on 2022-09-24
- [5cfbb48](https://github.com/JonasKruckenberg/tauri-build/commit/5cfbb48254bda2944898618864feab9ce333e555) publish new versions on 2022-09-24
- [ae03b5c](https://github.com/JonasKruckenberg/tauri-build/commit/ae03b5c9d2dfe37115cdf1ce8735b94ed6df1b1d) bump tauri on 2024-03-27
## \[1.4.0]
- Update Tauri to 1.4.0
- [e8e3a06](https://github.com/JonasKruckenberg/tauri-build/commit/e8e3a063b0b9a0065a3298417538bc4a4cd67dcf) Create tauri-140.md on 2023-09-09
## \[1.3.0]
- Update tauri to 1.3.0
- [f78901d](https://github.com/JonasKruckenberg/tauri-build/commit/f78901d646969119b2585fbcaf3d46056f1604c1) Create update-tauri.md on 2022-09-16
- [24c9678](https://github.com/JonasKruckenberg/tauri-build/commit/24c9678759ed3f11bcd173349949791c79af9471) publish new versions on 2022-09-16
- [16e594e](https://github.com/JonasKruckenberg/tauri-build/commit/16e594e2bd5705d3272a4fdfbb09ee509c26ace8) Create update-tauri.md on 2022-11-09
- [9cbb1b5](https://github.com/JonasKruckenberg/tauri-build/commit/9cbb1b5329393fdf442be97243c12d64ffaa24d3) publish new versions on 2022-11-09
- [f4944ed](https://github.com/JonasKruckenberg/tauri-build/commit/f4944ed69c7b08318409c8a713b452c983a595e5) Create update-tauri.md on 2023-05-04
## \[1.2.3]
- Update Tauri
- [c9a9f47](https://github.com/JonasKruckenberg/tauri-build/commit/c9a9f477a4028c6f7d73c7de60436358ce2a63d8) Create update-tauri-cli.md on 2023-02-05
## \[1.2.2]
- Update Tauri to 1.2.2
- [f931547](https://github.com/JonasKruckenberg/tauri-build/commit/f931547988eea8767b932b7ce5d5bd86f6669f8a) Create tauri.md on 2022-11-24
- [1b5505e](https://github.com/JonasKruckenberg/tauri-build/commit/1b5505e385fe23a85c6179c408cd612553417e3b) publish new versions on 2022-11-24
- [592d807](https://github.com/JonasKruckenberg/tauri-build/commit/592d8078fbe1fed5ed444ef0fda5d20373ae2ac8) Create tauri.md on 2022-12-09
## \[1.2.1]
- - [f931547](https://github.com/JonasKruckenberg/tauri-build/commit/f931547988eea8767b932b7ce5d5bd86f6669f8a) Create tauri.md on 2022-11-24
## \[1.2.0]
- Update Tauri to 1.2.0
- [f78901d](https://github.com/JonasKruckenberg/tauri-build/commit/f78901d646969119b2585fbcaf3d46056f1604c1) Create update-tauri.md on 2022-09-16
- [24c9678](https://github.com/JonasKruckenberg/tauri-build/commit/24c9678759ed3f11bcd173349949791c79af9471) publish new versions on 2022-09-16
- [16e594e](https://github.com/JonasKruckenberg/tauri-build/commit/16e594e2bd5705d3272a4fdfbb09ee509c26ace8) Create update-tauri.md on 2022-11-09
## \[1.1.1]
- Update `tauri` to v1.1.1
- [d749ebb](https://github.com/JonasKruckenberg/tauri-build/commit/d749ebb9bc9fe181aa1f61f294b323c751e9f09e) Create bump-tauri.md on 2022-09-24
## \[1.1.0]
- Update Tauri to 1.1.0
- [f78901d](https://github.com/JonasKruckenberg/tauri-build/commit/f78901d646969119b2585fbcaf3d46056f1604c1) Create update-tauri.md on 2022-09-16
## \[1.0.5]
- Update `tauri-cli` to 1.0.5
- [05b5654](https://github.com/JonasKruckenberg/tauri-build/commit/05b5654a68d17983acb8ec5cee449f0544ea833b) Create tauri-1.0.5.md on 2022-07-22
## \[1.0.4]
- Update Tauri to v1.0.4
- [1c6b6ac](https://github.com/JonasKruckenberg/tauri-build/commit/1c6b6ac74223d2d5b8902739262d9adc41119acf) Create tauri-1.0.4.md on 2022-07-15
## \[1.0.1]
- Update Tauri to v1.0.1
- [2195e36](https://github.com/JonasKruckenberg/tauri-build/commit/2195e362649c4cd9d083dc1cb5a35721ffdc78a5) Create update-tauri-1\_0\_1.md on 2022-06-29
## \[1.0.0]
- Update dependencies.
- [0ab72e4](https://github.com/JonasKruckenberg/tauri-build/commit/0ab72e4401f708b71b4556fa678ae644bfd164cb) Create chore-update-deps.md on 2022-05-18
- Update Tauri CLI to version `1.0.0-rc.10`
- [f83afa4](https://github.com/JonasKruckenberg/tauri-build/commit/f83afa4608fbec046f5b1015d2129e36c6de7c2f) Create chore-update-tauri.md on 2022-05-08
- Update to latest Tauri version
- [9f533f3](https://github.com/JonasKruckenberg/tauri-build/commit/9f533f359c472a37212a33431f0c1c9905e2d58c) Create chore-update-tauri2.md on 2022-06-15
- Use proper cargo command to detect the artifact directory.
- [e21d218](https://github.com/JonasKruckenberg/tauri-build/commit/e21d218be11a5009285f6bb6b1cee5a214cec470) fix: proper target dir detection using cargo on 2022-05-09
- Call the correct tauri subcommand
- [f593898](https://github.com/JonasKruckenberg/tauri-build/commit/f593898d4994e9ab7130631432cffbbde4ec74ba) fix: call the correct tauri subcommand on 2022-05-08
- Include Tauri CLI binaries for all supported platforms.
- [59ffbba](https://github.com/JonasKruckenberg/tauri-build/commit/59ffbba21ce2ad94621365ddf2f848c908e4e2ec) fix. use only deps supported on gh actions on 2022-05-08
- Correctly encode the output as JSON
- [86b50e9](https://github.com/JonasKruckenberg/tauri-build/commit/86b50e91f77b9e0b951b4d7a02bf8c969caa9c15) fix: correctly encode output as json on 2022-05-09
- Correctly compress .app files or omit them.
- [c9676c7](https://github.com/JonasKruckenberg/tauri-build/commit/c9676c7bb66d2fb0da128dc28a86bdca541e3cc5) fix: correctly handle .app files on 2022-05-10
- Fix globbing for artifacts on windows.
- [4728478](https://github.com/JonasKruckenberg/tauri-build/commit/4728478711cb3d8373d20dd2246f44bacbd51f3b) fix: globbing for artifacts on windows on 2022-05-09
- Ignore the linuxdelpoy.AppImage artifact
- [af44d01](https://github.com/JonasKruckenberg/tauri-build/commit/af44d01e2641bd82acc2c45f9b9ac8cb887a6577) fix: ignore linuxdeploy on 2022-05-09
- Only change working directory when projectPath is given.
- [5fa2b7e](https://github.com/JonasKruckenberg/tauri-build/commit/5fa2b7e361e1a40748f9373544d42ae2d287e260) only change dir optionally on 2022-05-08
- Correctly change working dir to projectPath when configured.
- [8864b18](https://github.com/JonasKruckenberg/tauri-build/commit/8864b1892897635a72de9bfce95f395c39c35eb1) fix: correctly change working dir to projectPath on 2022-05-08
- Remove default `configPath`
- [3708b7d](https://github.com/JonasKruckenberg/tauri-build/commit/3708b7de55753331b93547c98ab47f70a1d2be2b) fix: remove default configPath on 2022-05-10
- Replace execa with standard NodeJS exec.
- [9c72264](https://github.com/JonasKruckenberg/tauri-build/commit/9c722640b5343e17d4e870945a5ab8bab093a782) add changefile on 2022-05-09
- Update to Tauri v1.0.0.
- [925b02e](https://github.com/JonasKruckenberg/tauri-build/commit/925b02e58362fadca318e6df343ec665457aefb8) Create publish-stable.md on 2022-06-16
## \[0.1.2-beta.11]
- Update to latest Tauri version
- [9f533f3](https://github.com/JonasKruckenberg/tauri-build/commit/9f533f359c472a37212a33431f0c1c9905e2d58c) Create chore-update-tauri2.md on 2022-06-15
## \[0.1.2-beta.10]
- Update dependencies.
- [0ab72e4](https://github.com/JonasKruckenberg/tauri-build/commit/0ab72e4401f708b71b4556fa678ae644bfd164cb) Create chore-update-deps.md on 2022-05-18
## \[0.1.2-beta.9]
- Correctly compress .app files or omit them.
- [c9676c7](https://github.com/JonasKruckenberg/tauri-build/commit/c9676c7bb66d2fb0da128dc28a86bdca541e3cc5) fix: correctly handle .app files on 2022-05-10
- Remove default `configPath`
- [3708b7d](https://github.com/JonasKruckenberg/tauri-build/commit/3708b7de55753331b93547c98ab47f70a1d2be2b) fix: remove default configPath on 2022-05-10
## \[0.1.2-beta.8]
- Ignore the linuxdelpoy.AppImage artifact
- [af44d01](https://github.com/JonasKruckenberg/tauri-build/commit/af44d01e2641bd82acc2c45f9b9ac8cb887a6577) fix: ignore linuxdeploy on 2022-05-09
## \[0.1.2-beta.7]
- Fix globbing for artifacts on windows.
- [4728478](https://github.com/JonasKruckenberg/tauri-build/commit/4728478711cb3d8373d20dd2246f44bacbd51f3b) fix: globbing for artifacts on windows on 2022-05-09
## \[0.1.2-beta.6]
- Correctly encode the output as JSON
- [86b50e9](https://github.com/JonasKruckenberg/tauri-build/commit/86b50e91f77b9e0b951b4d7a02bf8c969caa9c15) fix: correctly encode output as json on 2022-05-09
## \[0.1.2-beta.5]
- Use proper cargo command to detect the artifact directory.
- [e21d218](https://github.com/JonasKruckenberg/tauri-build/commit/e21d218be11a5009285f6bb6b1cee5a214cec470) fix: proper target dir detection using cargo on 2022-05-09
## \[0.1.2-beta.4]
- Replace execa with standard NodeJS exec.
- [9c72264](https://github.com/JonasKruckenberg/tauri-build/commit/9c722640b5343e17d4e870945a5ab8bab093a782) add changefile on 2022-05-09
## \[0.1.2-beta.3]
- Only change working directory when projectPath is given.
- [5fa2b7e](https://github.com/JonasKruckenberg/tauri-build/commit/5fa2b7e361e1a40748f9373544d42ae2d287e260) only change dir optionally on 2022-05-08
## \[0.1.2-beta.2]
- Call the correct tauri subcommand

1
CODEOWNERS Normal file
View File

@ -0,0 +1 @@
* @actions/actions-runtime

13
LICENSE
View File

@ -1,6 +1,7 @@
MIT License
Copyright (c) 2022 Jonas Kruckenberg
The MIT License (MIT)
Copyright (c) 2018 GitHub, Inc. and contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@ -9,13 +10,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

304
README.md
View File

@ -1,251 +1,105 @@
# tauri-build
<p align="center">
<a href="https://github.com/actions/typescript-action/actions"><img alt="typescript-action status" src="https://github.com/actions/typescript-action/workflows/build-test/badge.svg"></a>
</p>
A composable action to build your Tauri project.
# Create a JavaScript Action using TypeScript
## Usage
Use this template to bootstrap the creation of a TypeScript action.:rocket:
As opposed to the offical [tauri-action](https://github.com/tauri-apps/tauri-action) this action is as minimal as possible.
Instead of creating a GitHub release and uploading artifacts all-in-one, it provides outputs to conveniently compose together with other actions such as `actions/upload-artifact`, `actions/download-artifact` or `softprops/action-gh-release`.
This template includes compilation support, tests, a validation workflow, publishing, and versioning guidance.
This action needs both Node.JS and Cargo to be already setup.
If you are new, there's also a simpler introduction. See the [Hello World JavaScript Action](https://github.com/actions/hello-world-javascript-action)
### Minimal
## Create an action from this template
The following example workflow builds artifacts on all 3 supported platforms (Window, macOS and Linux).
Click the `Use this Template` and provide the new repo details for your action
```yaml
name: 'publish'
## Code in Main
on:
push:
branches:
- release
> First, you'll need to have a reasonably modern version of `node` handy. This won't work with versions older than 9, for instance.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-binaries:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: setup node
uses: actions/setup-node@v1
with:
node-version: 20
- name: install Rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
- uses: JonasKruckenberg/tauri-build@v1
id: tauri_build
# You can now use the JSON array of artifacts under `steps.tauri_build.outputs.artifacts` to post-process/upload your bundles
Install the dependencies
```bash
$ npm install
```
### Bundling the app and creating a release
Chances are you want to do *something* with the artifacts that you produced. The following action will produce artifacts for Windows, macOS and Linux upload them as workflow artifacts, so that a final job (called `publish`) can create a GitHub release and attach all prouced artifacts to it. This would also be the place where you could upload artifacts to an AWS Bucket or similar.
```yaml
name: 'publish'
on:
push:
branches:
- release
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-binaries:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: setup node
uses: actions/setup-node@v1
with:
node-version: 20
- name: install Rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
- uses: JonasKruckenberg/tauri-build@v1
id: tauri_build
# The `artifacts` output can now be used by a different action to upload the artifacts
- uses: actions/upload-artifact@v3
with:
name: artifacts
path: "${{ join(fromJSON(steps.tauri_build.outputs.artifacts), '\n') }}"
publish:
needs: build-binaries
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Download the previously uploaded artifacts
- uses: actions/download-artifact@v3
id: download
with:
name: artifacts
path: artifacts
# And create a release with the artifacts attached
- name: 'create release'
uses: softprops/action-gh-release@master
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
with:
draft: false
files: ./artifacts/**/*
Build the typescript and package it for distribution
```bash
$ npm run build && npm run package
```
### Building for Apple Silicon
Run the tests :heavy_check_mark:
```bash
$ npm test
This example workflow will run produce binaries for Apple Silicon (aarch64) as well as the previously shown 3 platforms. This leverages the build matrix. This can be expanded to produce binaries for other target combinations too.
PASS ./index.test.js
✓ throws invalid number (3ms)
✓ wait 500 ms (504ms)
✓ test runs (95ms)
```yaml
name: 'publish'
on:
push:
branches:
- release
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-binaries:
strategy:
fail-fast: false
matrix:
platform:
- os: ubuntu-latest
rust_target: x86_64-unknown-linux-gnu
- os: macos-latest
rust_target: x86_64-apple-darwin
- os: macos-latest
rust_target: aarch64-apple-darwin
- os: windows-latest
rust_target: x86_64-pc-windows-msvc
runs-on: ${{ matrix.platform.os }}
steps:
- uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 20
- name: 'Setup Rust'
uses: actions-rs/toolchain@v1
with:
default: true
override: true
profile: minimal
toolchain: stable
target: ${{ matrix.platform.rust_target }}
- uses: Swatinem/rust-cache@v2
- name: install dependencies (ubuntu only)
if: matrix.platform.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
- uses: JonasKruckenberg/tauri-build@v1.2.2
id: tauri_build
with:
target: ${{ matrix.platform.rust_target }}
# The artifacts output can now be used to upload the artifacts
- uses: actions/upload-artifact@v3
with:
name: artifacts
path: "${{ join(fromJSON(steps.tauri_build.outputs.artifacts), '\n') }}"
publish:
needs: build-binaries
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Download the previously uploaded artifacts
- uses: actions/download-artifact@v3
id: download
with:
name: artifacts
path: artifacts
# And create a release with the artifacts attached
- name: 'create release'
uses: softprops/action-gh-release@master
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
with:
draft: false
files: ./artifacts/**/*
...
```
## Inputs
## Change action.yml
| Name | Type | Description | Default |
| ------------- | ------- | ----------------------------------------------------------- | ----------------- |
| `runner` | String | Binary to use to build the application | |
| `args` | String | Additional arguments for the build command | |
| `projectPath` | String | Path to the root of the Tauri project | . |
| `configPath` | String | Path to the tauri.conf.json file, relative to `projectPath` | `tauri.conf.json` |
| `target` | String | Rust target triple to build against | |
| `debug` | Boolean | Wether to build _debug_ or _release_ binaries | false |
The action.yml defines the inputs and output for your action.
## Outputs
Update the action.yml with your name, description, inputs and outputs for your action.
| Name | Type | Description |
| ----------- | ------ | ---------------------------------------------------------- |
| `artifacts` | String | JSON array of artifact paths produced by the build command |
See the [documentation](https://help.github.com/en/articles/metadata-syntax-for-github-actions)
## Permissions
## Change the Code
This Action requires the following permissions on the GitHub integration token:
Most toolkit and CI/CD operations involve async operations so the action is run in an async function.
```yaml
permissions:
contents: write
```javascript
import * as core from '@actions/core';
...
async function run() {
try {
...
}
catch (error) {
core.setFailed(error.message);
}
}
run()
```
## License
See the [toolkit documentation](https://github.com/actions/toolkit/blob/master/README.md#packages) for the various packages.
[MIT © Jonas Kruckenberg](./LICENSE)
## Publish to a distribution branch
Actions are run from GitHub repos so we will checkin the packed dist folder.
Then run [ncc](https://github.com/zeit/ncc) and push the results:
```bash
$ npm run package
$ git add dist
$ git commit -a -m "prod dependencies"
$ git push origin releases/v1
```
Note: We recommend using the `--license` option for ncc, which will create a license file for all of the production node modules used in your project.
Your action is now published! :rocket:
See the [versioning documentation](https://github.com/actions/toolkit/blob/master/docs/action-versioning.md)
## Validate
You can now validate the action by referencing `./` in a workflow in your repo (see [test.yml](.github/workflows/test.yml))
```yaml
uses: ./
with:
milliseconds: 1000
```
See the [actions tab](https://github.com/actions/typescript-action/actions) for runs of this action! :rocket:
## Usage:
After testing you can [create a v1 tag](https://github.com/actions/toolkit/blob/master/docs/action-versioning.md) to reference the stable and latest V1 action

View File

@ -12,14 +12,15 @@ inputs:
description: 'Path to the root of the project'
configPath:
description: 'Path to the tauri.conf.json file if you want a configuration different from the default one'
default: 'tauri.conf.json'
target:
description: 'The target triple to build against'
debug:
description: 'Builds with the debug flag'
default: false
default: 'false'
outputs:
artifacts:
description: 'JSON array of artifact paths produced by the build command'
description: ''
runs:
using: 'node20'
using: 'node16'
main: 'dist/index.js'

BIN
dist/cli.darwin-arm64.node generated vendored

Binary file not shown.

BIN
dist/cli.darwin-x64.node generated vendored

Binary file not shown.

BIN
dist/cli.linux-x64-gnu.node generated vendored

Binary file not shown.

BIN
dist/cli.win32-x64-msvc.node generated vendored

Binary file not shown.

27925
dist/index.js generated vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

496
dist/licenses.txt generated vendored
View File

@ -35,28 +35,6 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@fastify/busboy
MIT
Copyright Brian White. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
@tauri-apps/cli
Apache-2.0 OR MIT
@ -238,9 +216,6 @@ Apache-2.0 OR MIT
END OF TERMS AND CONDITIONS
@tauri-apps/cli-darwin-arm64
MIT
@tauri-apps/cli-darwin-x64
MIT
@ -260,6 +235,57 @@ The above copyright notice and this permission notice shall be included in all c
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
cross-spawn
MIT
The MIT License (MIT)
Copyright (c) 2018 Made With MOXY Lda <hello@moxy.studio>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
execa
MIT
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
get-stream
MIT
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
globalyzer
MIT
MIT License
@ -310,6 +336,366 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
human-signals
Apache-2.0
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2021 ehmicky <ehmicky@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
is-stream
MIT
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
isexe
ISC
The ISC License
Copyright (c) Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
merge-stream
MIT
The MIT License (MIT)
Copyright (c) Stephen Sugden <me@stephensugden.com> (stephensugden.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
mimic-fn
MIT
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
npm-run-path
MIT
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
onetime
MIT
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
path-key
MIT
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
shebang-command
MIT
MIT License
Copyright (c) Kevin Mårtensson <kevinmartensson@gmail.com> (github.com/kevva)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
shebang-regex
MIT
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
signal-exit
ISC
The ISC License
Copyright (c) 2015, Contributors
Permission to use, copy, modify, and/or distribute this software
for any purpose with or without fee is hereby granted, provided
that the above copyright notice and this permission notice
appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
string-argv
MIT
The MIT License (MIT)
@ -335,6 +721,19 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
strip-final-newline
MIT
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
tiny-glob
MIT
MIT License
@ -385,39 +784,20 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
undici
MIT
MIT License
which
ISC
The ISC License
Copyright (c) Matteo Collina and Undici contributors
Copyright (c) Isaac Z. Schlueter and Contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
uuid
MIT
The MIT License (MIT)
Copyright (c) 2010-2020 Robert Kieffer and other contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

View File

@ -1,6 +1,6 @@
{
"name": "tauri-build",
"version": "1.5.11",
"version": "0.1.2-beta.2",
"description": "TypeScript template action",
"main": "lib/main.js",
"scripts": {
@ -9,6 +9,7 @@
"format-check": "prettier --check '**/*.ts'",
"lint": "eslint src/**/*.ts",
"package": "ncc build --source-map --license licenses.txt",
"test": "jest",
"all": "npm run build && npm run format && npm run lint && npm run package && npm test"
},
"repository": {
@ -23,24 +24,23 @@
"author": "",
"license": "MIT",
"dependencies": {
"@actions/core": "^1.10.1",
"@tauri-apps/cli": "1.6.0",
"@tauri-apps/cli-darwin-x64": "1.6.0",
"@tauri-apps/cli-darwin-arm64": "1.6.0",
"@tauri-apps/cli-linux-x64-gnu": "1.6.0",
"@tauri-apps/cli-win32-x64-msvc": "1.6.0",
"string-argv": "^0.3.2",
"tiny-glob": "^0.2.9"
"@actions/core": "^1.6.0",
"@tauri-apps/cli": "1.0.0-rc.10",
"execa": "^6.1.0",
"string-argv": "^0.3.1",
"tiny-glob": "^0.2.9",
"@tauri-apps/cli-win32-x64-msvc": "1.0.0-rc.10",
"@tauri-apps/cli-darwin-x64": "1.0.0-rc.10",
"@tauri-apps/cli-linux-x64-gnu": "1.0.0-rc.10"
},
"devDependencies": {
"@types/node": "20.11.3",
"@typescript-eslint/parser": "6.7.0",
"@vercel/ncc": "0.38.1",
"eslint": "8.49.0",
"eslint-plugin-github": "4.10.1",
"@types/node": "16.11.33",
"@typescript-eslint/parser": "5.22.0",
"@vercel/ncc": "0.33.4",
"eslint": "8.15.0",
"eslint-plugin-github": "4.3.6",
"js-yaml": "4.1.0",
"prettier": "3.0.3",
"typescript": "5.3.3"
},
"packageManager": "pnpm@9.7.1+sha512.faf344af2d6ca65c4c5c8c2224ea77a81a5e8859cbc4e06b1511ddce2f0151512431dd19e6aff31f2c6a8f5f2aced9bd2273e1fed7dd4de1868984059d2c4247"
"prettier": "2.6.2",
"typescript": "4.6.4"
}
}

3430
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -1,9 +1,3 @@
{
"extends": ["config:base"],
"packageRules": [
{
"matchPackagePatterns": ["^@tauri-apps/"],
"groupName": "Tauri packages"
}
]
"extends": ["config:base"]
}

View File

@ -1,13 +1,7 @@
import {run} from '@tauri-apps/cli'
import {basename, dirname, join, resolve} from 'path'
import { run } from '@tauri-apps/cli'
import {execa} from 'execa'
import {join} from 'path'
import glob from 'tiny-glob'
import * as core from '@actions/core'
import {
exec,
ExecOptionsWithStringEncoding,
spawn,
SpawnOptionsWithoutStdio
} from 'child_process'
interface BuildOptions {
runner?: string
@ -19,11 +13,9 @@ interface BuildOptions {
}
export async function buildProject(options: BuildOptions): Promise<string[]> {
const args: string[] = options.args || []
const projectPath = options.projectPath || process.cwd()
if (options.debug) {
args.push('--debug')
}
let args: string[] = options.args || []
if (options.configPath) {
args.push('--config', options.configPath)
@ -33,35 +25,18 @@ export async function buildProject(options: BuildOptions): Promise<string[]> {
args.push('--target', options.target)
}
if (options.projectPath) {
const newCwd = resolve(process.cwd(), options.projectPath)
core.debug(`changing working directory: ${process.cwd()} -> ${newCwd}`)
process.chdir(newCwd)
}
process.chdir(projectPath)
if (options.runner) {
core.info(`running ${options.runner} with args: build ${args.join(' ')}`)
await spawnCmd(options.runner, ['build', ...args])
await execa(options.runner, ['build', ...args], { stdio: 'inherit' })
} else {
core.info(`running builtin runner with args: build ${args.join(' ')}`)
await run(['build', ...args], '')
}
const crateDir = await glob(`./**/Cargo.toml`).then(([manifest]) =>
join(process.cwd(), dirname(manifest))
)
const metaRaw = await execCmd(
'cargo',
['metadata', '--no-deps', '--format-version', '1'],
{cwd: crateDir}
)
const meta = JSON.parse(metaRaw)
const targetDir = meta.target_directory
const profile = options.debug ? 'debug' : 'release'
const bundleDir = options.target
? join(targetDir, options.target, profile, 'bundle')
: join(targetDir, profile, 'bundle')
const outDir = options.target
? `./target/${options.target}/${profile}/bundle`
: `./target/${profile}/bundle`
const macOSExts = ['app', 'app.tar.gz', 'app.tar.gz.sig', 'dmg']
const linuxExts = [
@ -70,95 +45,9 @@ export async function buildProject(options: BuildOptions): Promise<string[]> {
'AppImage.tar.gz.sig',
'deb'
]
const windowsExts = ['exe', 'exe.zip', 'exe.zip.sig', 'msi', 'msi.zip', 'msi.zip.sig']
const windowsExts = ['msi', 'msi.zip', 'msi.zip.sig']
const artifactsLookupPattern = `${bundleDir}/*/!(linuxdeploy)*.{${[
...macOSExts,
linuxExts,
windowsExts
].join(',')}}`
core.debug(
`Looking for artifacts using this pattern: ${artifactsLookupPattern}`
return glob(
join(outDir, `*/*.{${[...macOSExts, linuxExts, windowsExts].join(',')}}`)
)
const artifacts = await glob(artifactsLookupPattern, {
absolute: true,
filesOnly: false
})
let i = 0
for (const artifact of artifacts) {
if (
artifact.endsWith('.app') &&
!artifacts.some(a => a.endsWith('.app.tar.gz'))
) {
await execCmd('tar', [
'czf',
`${artifact}.tar.gz`,
'-C',
dirname(artifact),
basename(artifact)
])
artifacts[i] += '.tar.gz'
} else if (artifact.endsWith('.app')) {
// we can't upload a directory
artifacts.splice(i, 1)
}
i++
}
return artifacts
}
async function spawnCmd(
cmd: string,
args: string[],
options: SpawnOptionsWithoutStdio = {}
): Promise<void> {
return new Promise((resolve, reject) => {
const child = spawn(cmd, args, {
...options,
stdio: ['pipe', 'inherit', 'inherit'],
shell: true
})
child.on('exit', () => resolve)
child.on('error', error => {
reject(error)
})
if (child.stdin) {
child.stdin.on('error', error => {
reject(error)
})
}
})
}
async function execCmd(
cmd: string,
args: string[],
options: Omit<ExecOptionsWithStringEncoding, 'encoding'> = {}
): Promise<string> {
return new Promise((resolve, reject) => {
exec(
`${cmd} ${args.join(' ')}`,
{...options, encoding: 'utf-8'},
(error, stdout, stderr) => {
if (error) {
console.error(
`Failed to execute cmd ${cmd} with args: ${args.join(
' '
)}. reason: ${error}`
)
reject(stderr)
} else {
resolve(stdout)
}
}
)
})
}

View File

@ -1,6 +1,6 @@
import * as core from '@actions/core'
import {buildProject} from './build-project'
import stringArgv from 'string-argv'
import stringArgv from 'string-argv';
async function run(): Promise<void> {
try {
@ -13,7 +13,7 @@ async function run(): Promise<void> {
debug: core.getBooleanInput('debug')
})
core.setOutput('artifacts', JSON.stringify(artifacts))
core.setOutput('artifacts', artifacts.join('\n'))
} catch (error) {
if (error instanceof Error) core.setFailed(error.message)
}

View File

@ -1,21 +0,0 @@
<!DOCTYPE html>
<html>
<style>
html,
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
body {
display: flex;
align-items: center;
justify-content: center;
}
</style>
<body>
<h1>fixture</h1>
</body>
</html>

View File

@ -1,4 +0,0 @@
# Generated by Cargo
# will have compiled files and executables
/target/
WixTools

File diff suppressed because it is too large Load Diff

View File

@ -1,28 +0,0 @@
[package]
name = "app"
version = "0.1.0"
description = "A Tauri App"
authors = ["you"]
license = ""
repository = ""
default-run = "app"
edition = "2021"
rust-version = "1.57"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[build-dependencies]
tauri-build = { version = "1.3", features = [] }
[dependencies]
serde_json = "1.0.82"
serde = { version = "1.0.138", features = ["derive"] }
tauri = { version = "1.3", features = [] }
[features]
# by default Tauri runs in production mode
# when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL
default = [ "custom-protocol" ]
# this feature is used used for production builds where `devPath` points to the filesystem
# DO NOT remove this
custom-protocol = [ "tauri/custom-protocol" ]

View File

@ -1,3 +0,0 @@
fn main() {
tauri_build::build()
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 974 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 903 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

View File

@ -1,10 +0,0 @@
#![cfg_attr(
all(not(debug_assertions), target_os = "windows"),
windows_subsystem = "windows"
)]
fn main() {
tauri::Builder::default()
.run(tauri::generate_context!())
.expect("error while running tauri application");
}

View File

@ -1,66 +0,0 @@
{
"$schema": "../node_modules/@tauri-apps/cli/schema.json",
"build": {
"beforeBuildCommand": "",
"beforeDevCommand": "",
"devPath": "../dist",
"distDir": "../dist"
},
"package": {
"productName": "fixture",
"version": "0.1.0"
},
"tauri": {
"allowlist": {
"all": false
},
"bundle": {
"active": true,
"category": "DeveloperTool",
"copyright": "",
"deb": {
"depends": []
},
"externalBin": [],
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
],
"identifier": "com.tauri-build.test",
"longDescription": "",
"macOS": {
"entitlements": null,
"exceptionDomain": "",
"frameworks": [],
"providerShortName": null,
"signingIdentity": null
},
"resources": [],
"shortDescription": "",
"targets": "all",
"windows": {
"certificateThumbprint": null,
"digestAlgorithm": "sha256",
"timestampUrl": ""
}
},
"security": {
"csp": null
},
"updater": {
"active": false
},
"windows": [
{
"fullscreen": false,
"height": 600,
"resizable": true,
"title": "Tauri App",
"width": 800
}
]
}
}

View File

@ -6,8 +6,7 @@
"rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
"strict": true, /* Enable all strict type-checking options. */
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
"moduleResolution": "node"
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
},
"exclude": ["node_modules", "**/*.test.ts"]
}