DataScience
Published 2023. 4. 14. 10:31
Tauri 빌드 Rust
728x90

1. 윈도우 설치 프로그램

cargo tauri build

윈도우용 Tauri 애플리케이션은 마이크로소프트 설치 프로그램(.msi파일)로 제공됩니다

32-bit
tauri build --target i686-pc-windows-msvc

ARM64
tauri build --target aarch64-pc-windows-msvc

Windows7 호환

  • Cargo.toml
<code />
[dependencies] tauri = { version = "1", features = [ "windows7-compat" ] }

Windows Installer를 빌드하기 위한 기본 설정
원하는 type을 넣으면 됩니다.

  • tauri.config.json
<code />
{ "tauri": { "bundle": { "windows": { "webviewInstallMode": { "type": "downloadBootstrapper" //Bootstrapper 다운로드 "type": "embedBootstrapper" //Bootstrapper 포함하기 "type": "offlineInstaller" //오프라인 설치 프로그램 "type": "skip" //설치 건너뛰기 } } } } }

2. Linux 번들

cargo tauri build

Linux용 Tauri 애플리케이션은 Debian 번들( .deb파일) 또는 AppImage( .AppImage파일)와 함께 배포됩니다
Debian
Debian 패키지에 사용자 지정 파일을 포함하려면 tauri.conf.json > tauri > bundle > deb > files에 파일 또는 폴더 목록을 제공하면 됩니다 . 구성 개체는 Debian 패키지의 경로를 파일에 상대적인 파일 시스템의 파일 경로에 매핑합니다 다음은 tauri.conf.json 구성 예입니다.

<code />
{ "tauri": { "bundle": { "deb": { "files": { "/usr/share/README.md": "../README.md", // copies the README.md file to /usr/share/README.md "usr/share/assets": "../assets/" // copies the entire assets directory to /usr/share/assets } } } } }

AppImage
AppImage는 시스템 설치 패키지에 의존하지 않고 대신 애플리케이션에 필요한 모든 종속성 및 파일을 번들로 묶는 배포 형식입니다.
사용자는 파일을 실행 가능(chmod a+x MyProject.AppImage)하게 만들고 실행(./MyProject.AppImage)할 수 있습니다.

'Rust' 카테고리의 다른 글

Tauri 설치부터 배포까지 (리눅스 빌드)  (96) 2023.04.16
Tauri 배포  (53) 2023.04.15
Tauri 테스트  (42) 2023.04.14
Tauri 디버깅  (106) 2023.04.13
Tauri 개발  (31) 2023.04.13
profile

DataScience

@Ninestar

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!