Skip to content

Commit f4d5241

Browse files
chore: cleanup unnecessary scripts and files (#10731)
* chore: cleanup unnecessary scripts and files - Removed `.cargo/config` and `__TAURI_WORKSPACE__` workaround - Removed husky and precommit hooks - Remove unecessary script files - Moved `.scripts/covector/sync-cli-metadata.js` to `.scripts/ci/sync-cli-metadata.js` - Moved `app-icon.png` to `.github/icon.png` - Enhanced has-diff.sh script to output which files are modified * lock file * bring back __TAURI_WORKSPACE__ * add change file --------- Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
1 parent 1add13b commit f4d5241

File tree

44 files changed

+74
-345
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+74
-345
lines changed

.cargo/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
[env]
2+
# workaround needed to prevent `STATUS_ENTRYPOINT_NOT_FOUND` error
3+
# see https://github.com/tauri-apps/tauri/pull/4383#issuecomment-1212221864
24
__TAURI_WORKSPACE__ = "true"

.changes/config.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,14 @@
185185
"path": "./core/tauri-plugin",
186186
"manager": "rust",
187187
"dependencies": ["tauri-utils"],
188-
"postversion": "node ../../.scripts/covector/sync-cli-metadata.js ${ pkg.pkg } ${ release.type }"
188+
"postversion": "node ../../.scripts/ci/sync-cli-metadata.js ${ pkg.pkg } ${ release.type }"
189189
},
190190
"tauri-build": {
191191
"path": "./core/tauri-build",
192192
"manager": "rust",
193193
"dependencies": ["tauri-codegen", "tauri-utils"],
194194
"postversion": [
195-
"node ../../.scripts/covector/sync-cli-metadata.js ${ pkg.pkg } ${ release.type }",
195+
"node ../../.scripts/ci/sync-cli-metadata.js ${ pkg.pkg } ${ release.type }",
196196
"cargo build --manifest-path ../tauri-config-schema/Cargo.toml"
197197
],
198198
"assets": [
@@ -212,14 +212,14 @@
212212
"tauri-runtime-wry",
213213
"tauri-build"
214214
],
215-
"postversion": "node ../../.scripts/covector/sync-cli-metadata.js ${ pkg.pkg } ${ release.type }"
215+
"postversion": "node ../../.scripts/ci/sync-cli-metadata.js ${ pkg.pkg } ${ release.type }"
216216
},
217217
"@tauri-apps/cli": {
218218
"path": "./tooling/cli/node",
219219
"manager": "javascript",
220220
"dependencies": ["tauri-cli"],
221221
"postversion": [
222-
"node ../../../.scripts/covector/sync-cli-metadata.js ${ pkg.pkg } ${ release.type }",
222+
"node ../../../.scripts/ci/sync-cli-metadata.js ${ pkg.pkg } ${ release.type }",
223223
"cargo build --manifest-path ../../../core/tauri-config-schema/Cargo.toml"
224224
],
225225
"prepublish": [],

.changes/update-docs-icon-path.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
"tauri": patch:changes
3+
"tauri-runtime": patch:changes
4+
"tauri-runtime-wry": patch:changes
5+
"tauri-utils": patch:changes
6+
"tauri-macros": patch:changes
7+
"tauri-codegen": patch:changes
8+
"tauri-build": patch:changes
9+
"tauri-plugin": patch:changes
10+
"tauri-driver": patch:changes
11+
"tauri-cli": patch:changes
12+
"@tauri-apps/cli": patch:changes
13+
"@tauri-apps/api": patch:changes
14+
"tauri-bundler": patch:changes
15+
---
16+
17+
Update documentation icon path.
File renamed without changes.

.husky/pre-commit

Lines changed: 0 additions & 24 deletions
This file was deleted.

.scripts/cargo-check.ps1

Lines changed: 0 additions & 55 deletions
This file was deleted.

.scripts/cargo-check.sh

Lines changed: 0 additions & 45 deletions
This file was deleted.

.scripts/ci/has-diff.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
# SPDX-License-Identifier: Apache-2.0
55
# SPDX-License-Identifier: MIT
66

7-
if git diff --quiet --ignore-submodules HEAD
7+
git_output=$(git diff --ignore-submodules --name-only HEAD)
8+
if [ -z "$git_output" ];
89
then
9-
echo "working directory is clean"
10+
echo "working directory is clean"
1011
else
11-
echo "found diff"
12+
echo "✘ found diff:"
13+
echo "$git_output"
1214
exit 1
1315
fi

.scripts/docker/build.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)