Skip to content

Commit 99795ce

Browse files
0.12.2 更新脚本
1 parent e9a74e8 commit 99795ce

File tree

5 files changed

+15
-6
lines changed

5 files changed

+15
-6
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ log_level = "info" # 日志级别
8181
### 环境依赖
8282
- 后端使用[`Rust`](https://www.rust-lang.org/learn/get-started)开发, 要求版本1.81及以上
8383
- 客户端使用[`tauri`](https://tauri.app/)[`react`](https://react.dev/)开发
84-
- 数据库使用`sqlite3`存储
84+
- 数据库使用`sqlite3`存储, 如果本地已经安装了`sqlite3`并添加`dll``so`到环境变量, 可以在`tauri.conf.json``resources`中删除动态库的资源依赖
8585

8686
### Windows
8787
```powershell
@@ -90,7 +90,9 @@ log_level = "info" # 日志级别
9090
```
9191
`publish`中可以看到`search-files-app.exe`文件, 双击运行即可, 同时还会生成`search-files-app_0.11.0_x64_en-US.msi``search-files-app_0.11.0_x64-setup.exe`安装程序
9292

93-
### Linux
93+
### Linux or MacOS
94+
> Linux or MacOS 需要更改`app/search-files-app/src-tauri/tauri.conf.json`中的`resources`中的`sqlite3.dll``libsqlite3.so`
95+
9496
```bash
9597
make all # 编译客户端和服务端
9698
make publish # 打包编译产物和配置文件
1.4 MB
Binary file not shown.

app/search-files-app/src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
},
4545
"productName": "search-files-app",
4646
"mainBinaryName": "search-files-app",
47-
"version": "0.11.0",
47+
"version": "0.12.2",
4848
"identifier": "com.file.efl.toni",
4949
"plugins": {
5050
"cli": {

build.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ $TAURI_APP_DIR = "./app/search-files-app"
1212
$TAURI_TARGET_DIR = "$TAURI_APP_DIR/src-tauri/target/release"
1313
$RUST_BINARY = "file_elf.exe"
1414
$TAURI_BINARY = "search-files-app.exe"
15-
$TAURI_INSTALL_MSI = "bundle/msi/search-files-app_0.11.0_x64_en-US.msi"
16-
$TAURI_INSTALL_EXE = "bundle/nsis/search-files-app_0.11.0_x64-setup.exe"
15+
$TAURI_INSTALL_MSI = "bundle/msi/search-files-app_*_x64_en-US.msi"
16+
$TAURI_INSTALL_EXE = "bundle/nsis/search-files-app_*_x64-setup.exe"
1717
$ZIP_FILE = "release_package_windows.zip"
1818

1919
# Ensure the publish directory exists
@@ -42,6 +42,7 @@ function Build-Tauri {
4242
function Publish-Files {
4343
Ensure-PublishDir
4444
Write-Host "Copying files to the publish directory..."
45+
Copy-Item "base.toml" "$PUBLISH_DIR/"
4546
Copy-Item "$CARGO_TARGET_DIR/$RUST_BINARY" "$PUBLISH_DIR/"
4647
Copy-Item "$TAURI_TARGET_DIR/$TAURI_BINARY" "$PUBLISH_DIR/"
4748
Copy-Item "$TAURI_TARGET_DIR/$TAURI_INSTALL_MSI" "$PUBLISH_DIR/"

makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ TAURI_APP_DIR := ./app/search-files-app
55
TAURI_TARGET_DIR := $(TAURI_APP_DIR)/src-tauri/target/release
66
RUST_BINARY := file_elf
77
TAURI_BINARY := search-files-app
8+
TAURI_DEB:= bundle/deb/search-files-app_*_amd64.deb
9+
TAURI_IMG:= bundle/appimage/search-files-app_*_amd64.AppImage
10+
TAURI_RPM:= bundle/rpm/search-files-app-*.x86_64.rpm
811
ZIP_FILE := release_package_linux.zip
912

1013
# Default target: build everything
@@ -33,8 +36,11 @@ publish-dir:
3336
publish: publish-dir
3437
@echo "Copying files to the publish directory..."
3538
cp $(CARGO_TARGET_DIR)/$(RUST_BINARY) $(PUBLISH_DIR)/
36-
# cp ./base.toml $(PUBLISH_DIR)/
39+
cp ./base.toml $(PUBLISH_DIR)/
3740
cp $(TAURI_TARGET_DIR)/$(TAURI_BINARY) $(PUBLISH_DIR)/
41+
cp $(TAURI_TARGET_DIR)/$(TAURI_DEB) $(PUBLISH_DIR)/
42+
cp $(TAURI_TARGET_DIR)/$(TAURI_IMG) $(PUBLISH_DIR)/
43+
cp $(TAURI_TARGET_DIR)/$(TAURI_RPM) $(PUBLISH_DIR)/
3844
@echo "Packaging files into $(ZIP_FILE)..."
3945
cd $(PUBLISH_DIR) && zip -r ../$(ZIP_FILE) .
4046

0 commit comments

Comments
 (0)