Compare commits

..

1 Commits
main ... v0.1.1

Author SHA1 Message Date
Jonas Kruckenberg
83c3792130
use tauri cli directly if no runner is given 2022-05-07 13:49:49 +02:00
52 changed files with 4762 additions and 32488 deletions

View File

@ -1,26 +0,0 @@
{
"gitSiteUrl": "https://github.com/JonasKruckenberg/tauri-build/",
"pkgManagers": {
"github action": {
"version": true,
"preversion": [
"pnpm install --no-optional --no-frozen-lockfile",
"pnpm build",
"pnpm package"
],
"getPublishedVersion": "git describe --tags --abbrev=0",
"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"
]
}
},
"packages": {
"tauri-build": {
"path": ".",
"manager": "github action"
}
}
}

View File

@ -1,31 +0,0 @@
# Changes
##### via https://github.com/jbolda/covector
As you create PRs and make changes that require a version bump, please add a new markdown file in this folder. You do not note the version _number_, but rather the type of bump that you expect: major, minor, or patch. The filename is not important, as long as it is a `.md`, but we recommend that it represents the overall change for organizational purposes.
When you select the version bump required, you do _not_ need to consider dependencies. Only note the package with the actual change, and any packages that depend on that package will be bumped automatically in the process.
Use the following format:
```md
---
"package-a": patch
"package-b": minor
---
Change summary goes here
```
Summaries do not have a specific character limit, but are text only. These summaries are used within the (future implementation of) changelogs. They will give context to the change and also point back to the original PR if more details and context are needed.
Changes will be designated as a `major`, `minor` or `patch` as further described in [semver](https://semver.org/).
Given a version number MAJOR.MINOR.PATCH, increment the:
- MAJOR version when you make incompatible API changes,
- MINOR version when you add functionality in a backwards compatible manner, and
- PATCH version when you make backwards compatible bug fixes.
Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format, but will be discussed prior to usage (as extra steps will be necessary in consideration of merging and publishing).

View File

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

11
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
- package-ecosystem: npm
directory: /
schedule:
interval: daily

73
.github/workflows/check-dist.yml vendored Normal file
View File

@ -0,0 +1,73 @@
# `dist/index.js` is a special file in Actions.
# When you reference an action with `uses:` in a workflow,
# `index.js` is the code that will run.
# For our project, we generate this file through a build process from other source files.
# We need to make sure the checked-in `index.js` actually matches what we expect it to be.
name: Check dist/
on:
push:
branches:
- main
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
workflow_dispatch:
jobs:
check-dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set Node.js 16.x
uses: actions/setup-node@v2.5.1
with:
node-version: 16.x
- uses: pnpm/action-setup@v2.0.1
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Rebuild the dist/ directory
run: |
npm run build
npm run package
- name: Compare the expected and actual dist/ directories
run: |
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi
id: diff
# If index.js was different than expected, upload the expected version as an artifact
- uses: actions/upload-artifact@v2
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: dist
path: dist/

View File

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

View File

@ -1,16 +0,0 @@
name: covector status
on: [pull_request]
jobs:
covector:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # required for use of git history
- name: covector status
uses: jbolda/covector/packages/action@covector-v0.7
id: covector
with:
command: 'status'

View File

@ -1,67 +0,0 @@
name: version or publish
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
version-or-publish:
runs-on: ubuntu-latest
timeout-minutes: 65
outputs:
change: ${{ steps.covector.outputs.change }}
commandRan: ${{ steps.covector.outputs.commandRan }}
successfulPublish: ${{ steps.covector.outputs.successfulPublish }}
steps:
- uses: actions/checkout@v4
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
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- uses: pnpm/action-setup@v2.4.1
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: covector version or publish (publish when no change files present)
uses: jbolda/covector/packages/action@covector-v0.7
id: covector
with:
token: ${{ secrets.GITHUB_TOKEN }}
command: 'version-or-publish'
createRelease: true
- name: Create Pull Request With Versions Bumped
id: cpr
uses: peter-evans/create-pull-request@v5
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'
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 # Ignore built ts files
__tests__/runner/* __tests__/runner/*
lib/**/* lib/**/*
.idea

View File

@ -1,358 +0,0 @@
# 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
- [f593898](https://github.com/JonasKruckenberg/tauri-build/commit/f593898d4994e9ab7130631432cffbbde4ec74ba) fix: call the correct tauri subcommand on 2022-05-08
## \[0.1.2-beta.1]
- 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
- 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
## \[0.1.2-beta.0]
- 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

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 Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal 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 copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all The above copyright notice and this permission notice shall be included in
copies or substantial portions of the Software. all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 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 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
SOFTWARE. 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. This template includes compilation support, tests, a validation workflow, publishing, and versioning guidance.
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 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 ## Code in Main
name: 'publish'
on: > First, you'll need to have a reasonably modern version of `node` handy. This won't work with versions older than 9, for instance.
push:
branches:
- release
concurrency: Install the dependencies
group: ${{ github.workflow }}-${{ github.ref }} ```bash
cancel-in-progress: true $ npm install
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
``` ```
### Bundling the app and creating a release Build the typescript and package it for distribution
```bash
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. $ npm run build && npm run package
```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/**/*
``` ```
### 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 | The action.yml defines the inputs and output for your action.
| ------------- | ------- | ----------------------------------------------------------- | ----------------- |
| `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 |
## Outputs Update the action.yml with your name, description, inputs and outputs for your action.
| Name | Type | Description | See the [documentation](https://help.github.com/en/articles/metadata-syntax-for-github-actions)
| ----------- | ------ | ---------------------------------------------------------- |
| `artifacts` | String | JSON array of artifact paths produced by the build command |
## 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 ```javascript
permissions: import * as core from '@actions/core';
contents: write ...
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' description: 'Path to the root of the project'
configPath: configPath:
description: 'Path to the tauri.conf.json file if you want a configuration different from the default one' description: 'Path to the tauri.conf.json file if you want a configuration different from the default one'
default: 'tauri.conf.json'
target: target:
description: 'The target triple to build against' description: 'The target triple to build against'
debug: debug:
description: 'Builds with the debug flag' description: 'Builds with the debug flag'
default: false default: 'false'
outputs: outputs:
artifacts: artifacts:
description: 'JSON array of artifact paths produced by the build command' description: ''
runs: runs:
using: 'node20' using: 'node16'
main: 'dist/index.js' 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.

28234
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

338
dist/licenses.txt generated vendored
View File

@ -35,15 +35,17 @@ 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. SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@fastify/busboy cross-spawn
MIT MIT
Copyright Brian White. All rights reserved. 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 Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to of this software and associated documentation files (the "Software"), to deal
deal in the Software without restriction, including without limitation the in the Software without restriction, including without limitation the rights
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
sell copies of the Software, and to permit persons to whom the Software is copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in The above copyright notice and this permission notice shall be included in
@ -53,13 +55,89 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
IN THE SOFTWARE. THE SOFTWARE.
@tauri-apps/cli
Apache-2.0 OR MIT
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
Copyright (c) 2018 Terkel Gjervig Nielsen
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.
globrex
MIT
MIT License
Copyright (c) 2018 Terkel Gjervig Nielsen
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.
human-signals
Apache-2.0
Apache License Apache License
Version 2.0, January 2004 Version 2.0, January 2004
http://www.apache.org/licenses/ http://www.apache.org/licenses/
@ -237,22 +315,37 @@ Apache-2.0 OR MIT
END OF TERMS AND CONDITIONS END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
@tauri-apps/cli-darwin-arm64 To apply the Apache License to your work, attach the following
MIT 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.
@tauri-apps/cli-darwin-x64 Copyright 2021 ehmicky <ehmicky@gmail.com>
MIT
@tauri-apps/cli-linux-x64-gnu Licensed under the Apache License, Version 2.0 (the "License");
MIT you may not use this file except in compliance with the License.
You may obtain a copy of the License at
@tauri-apps/cli-win32-x64-msvc http://www.apache.org/licenses/LICENSE-2.0
MIT
@vercel/ncc 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
Copyright 2018 ZEIT, Inc. 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: 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:
@ -260,11 +353,31 @@ 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. 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
Copyright (c) 2018 Terkel Gjervig Nielsen 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 Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
@ -273,41 +386,114 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all The above copyright notice and this permission notice shall be included in
copies or substantial portions of the Software. all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 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 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
SOFTWARE. THE SOFTWARE.
globrex mimic-fn
MIT MIT
MIT License MIT License
Copyright (c) 2018 Terkel Gjervig Nielsen Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy 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:
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 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 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.
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 npm-run-path
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, MIT
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE MIT License
SOFTWARE.
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 string-argv
@ -335,6 +521,19 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. 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 tiny-glob
MIT MIT
MIT License MIT License
@ -385,39 +584,20 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE. THE SOFTWARE.
undici which
MIT ISC
MIT License 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 Permission to use, copy, modify, and/or distribute this software for any
of this software and associated documentation files (the "Software"), to deal purpose with or without fee is hereby granted, provided that the above
in the Software without restriction, including without limitation the rights copyright notice and this permission notice appear in all copies.
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 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
copies or substantial portions of the Software. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
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.

2
dist/sourcemap-register.js generated vendored

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,7 @@
{ {
"name": "tauri-build", "name": "typescript-action",
"version": "1.5.11", "version": "0.0.0",
"private": true,
"description": "TypeScript template action", "description": "TypeScript template action",
"main": "lib/main.js", "main": "lib/main.js",
"scripts": { "scripts": {
@ -9,11 +10,12 @@
"format-check": "prettier --check '**/*.ts'", "format-check": "prettier --check '**/*.ts'",
"lint": "eslint src/**/*.ts", "lint": "eslint src/**/*.ts",
"package": "ncc build --source-map --license licenses.txt", "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" "all": "npm run build && npm run format && npm run lint && npm run package && npm test"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/JonasKruckenberg/tauri-build.git" "url": "git+https://github.com/actions/typescript-action.git"
}, },
"keywords": [ "keywords": [
"actions", "actions",
@ -23,24 +25,20 @@
"author": "", "author": "",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/core": "^1.10.1", "@actions/core": "^1.6.0",
"@tauri-apps/cli": "1.6.0", "@tauri-apps/cli": "1.0.0-rc.9",
"@tauri-apps/cli-darwin-x64": "1.6.0", "execa": "^6.1.0",
"@tauri-apps/cli-darwin-arm64": "1.6.0", "string-argv": "^0.3.1",
"@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" "tiny-glob": "^0.2.9"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "20.11.3", "@types/node": "^16.10.5",
"@typescript-eslint/parser": "6.7.0", "@typescript-eslint/parser": "^5.8.1",
"@vercel/ncc": "0.38.1", "@vercel/ncc": "^0.31.1",
"eslint": "8.49.0", "eslint": "^7.32.0",
"eslint-plugin-github": "4.10.1", "eslint-plugin-github": "^4.3.2",
"js-yaml": "4.1.0", "js-yaml": "^4.1.0",
"prettier": "3.0.3", "prettier": "2.5.1",
"typescript": "5.3.3" "typescript": "^4.4.4"
}, }
"packageManager": "pnpm@9.7.1+sha512.faf344af2d6ca65c4c5c8c2224ea77a81a5e8859cbc4e06b1511ddce2f0151512431dd19e6aff31f2c6a8f5f2aced9bd2273e1fed7dd4de1868984059d2c4247"
} }

3589
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -1,13 +1,7 @@
import { run } from '@tauri-apps/cli' import { run } from '@tauri-apps/cli'
import {basename, dirname, join, resolve} from 'path' import {execa} from 'execa'
import {join} from 'path'
import glob from 'tiny-glob' import glob from 'tiny-glob'
import * as core from '@actions/core'
import {
exec,
ExecOptionsWithStringEncoding,
spawn,
SpawnOptionsWithoutStdio
} from 'child_process'
interface BuildOptions { interface BuildOptions {
runner?: string runner?: string
@ -19,11 +13,9 @@ interface BuildOptions {
} }
export async function buildProject(options: BuildOptions): Promise<string[]> { export async function buildProject(options: BuildOptions): Promise<string[]> {
const args: string[] = options.args || [] const projectPath = options.configPath || process.cwd()
if (options.debug) { let args: string[] = options.args || []
args.push('--debug')
}
if (options.configPath) { if (options.configPath) {
args.push('--config', options.configPath) args.push('--config', options.configPath)
@ -33,35 +25,18 @@ export async function buildProject(options: BuildOptions): Promise<string[]> {
args.push('--target', options.target) args.push('--target', options.target)
} }
if (options.projectPath) { process.chdir(projectPath)
const newCwd = resolve(process.cwd(), options.projectPath)
core.debug(`changing working directory: ${process.cwd()} -> ${newCwd}`)
process.chdir(newCwd)
}
if (options.runner) { if (options.runner) {
core.info(`running ${options.runner} with args: build ${args.join(' ')}`) await execa(options.runner, args, { stdio: 'inherit' })
await spawnCmd(options.runner, ['build', ...args])
} else { } else {
core.info(`running builtin runner with args: build ${args.join(' ')}`) await run(args, '')
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 profile = options.debug ? 'debug' : 'release'
const bundleDir = options.target const outDir = options.target
? join(targetDir, options.target, profile, 'bundle') ? `./target/${options.target}/${profile}/bundle`
: join(targetDir, profile, 'bundle') : `./target/${profile}/bundle`
const macOSExts = ['app', 'app.tar.gz', 'app.tar.gz.sig', 'dmg'] const macOSExts = ['app', 'app.tar.gz', 'app.tar.gz.sig', 'dmg']
const linuxExts = [ const linuxExts = [
@ -70,95 +45,9 @@ export async function buildProject(options: BuildOptions): Promise<string[]> {
'AppImage.tar.gz.sig', 'AppImage.tar.gz.sig',
'deb' '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)*.{${[ return glob(
...macOSExts, join(outDir, `*/*.{${[...macOSExts, linuxExts, windowsExts].join(',')}}`)
linuxExts,
windowsExts
].join(',')}}`
core.debug(
`Looking for artifacts using this pattern: ${artifactsLookupPattern}`
) )
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 * as core from '@actions/core'
import {buildProject} from './build-project' import {buildProject} from './build-project'
import stringArgv from 'string-argv' import stringArgv from 'string-argv';
async function run(): Promise<void> { async function run(): Promise<void> {
try { try {
@ -13,7 +13,7 @@ async function run(): Promise<void> {
debug: core.getBooleanInput('debug') debug: core.getBooleanInput('debug')
}) })
core.setOutput('artifacts', JSON.stringify(artifacts)) core.setOutput('artifacts', artifacts.join('\n'))
} catch (error) { } catch (error) {
if (error instanceof Error) core.setFailed(error.message) 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. */ "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. */ "strict": true, /* Enable all strict type-checking options. */
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ "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'. */ "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
"moduleResolution": "node"
}, },
"exclude": ["node_modules", "**/*.test.ts"] "exclude": ["node_modules", "**/*.test.ts"]
} }