9/13/2023 0 Comments Rust cross platform pc macSimply message the moderators and ask us to look into it. Since Tauri officially only supports the MSVC Windows target, the setup is a bit more involved.įirst, make sure all your Tauri dependencies are at least version 1.3, check out the dependency update guide if you're not sure how.If your submission does not appear, do not delete it. Therefore it should only be used as a last resort if local VMs or CI solutions like GitHub Actions don't work for you. Note that this is currently considered highly experimental and may not work on every system or for every project. In contrast to WiX, NSIS itself can also work on Linux and macOS which makes it possible to build many Tauri apps on non-Windows hosts. Tauri v1.3 added a new Windows installer type based on the NSIS installer framework. Experimental: Build Windows apps on Linux and macOS Tauri automatically initializes before building and configuring it to use your web artifacts. You can use this action on a repo that doesn't have Tauri configured. Some project templates may already implement this GitHub action workflow, such as tauri-svelte-template. Take care to read the Usage limits, billing, and administration documentation for GitHub Actions. Make sure to check the documentation for GitHub Actions to understand better how this workflow works. ReleaseBody : 'See the assets to download and install this version.' ReleaseName : 'App Name v_VERSION_' # tauri-action replaces \_\_VERSION\_\_ with the app version. GITHUB_TOKEN : $ # This only works if your workflow triggers on new tags. Run : yarn install # Change this to npm, yarn or pnpm. # If you don't have `beforeBuildCommand` configured you may want to build your frontend here too. name : Sync node version and setup cacheĬache : 'yarn' # Set this to npm, yarn or pnpm. Sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev ![]() # You can remove libayatana-appindicator3-dev if you don't use the system tray feature. Uses : name : Install dependencies (ubuntu only) The important part is that you keep the below line at the end of the workflow, since this runs the build script and releases the artifacts: You may modify the workflow name, change the triggers, and add more steps such as npm run lint or npm run test. When your app isn't on the root of the repo, use the projectPath input. You can configure Tauri with the configPath, distPath and iconPath options. Alternatively, you may set up the workflow based on the example at the bottom of this page Configuration Replace the file with the Tauri Action production build workflow example. Go to the Actions tab on your GitHub project and choose "New workflow", then choose "Set up a workflow yourself". You can use this action on a repo that doesn't have Tauri configured since it automatically initializes Tauri before building and configuring it to use your artifacts. To set up Tauri Action you must first set up a GitHub repository. Windows Code Signing with GitHub Actions.To setup code signing for both Windows and macOS on your workflow, follow the specific guide for each platform: This GitHub Action may also be used as a testing pipeline for your Tauri app, guaranteeing compilation runs fine on all platforms for each pull request sent, even if you don't wish to create a new release. ![]() Tauri Action leverages GitHub Actions to simultaneously build your application as a Tauri native binary for macOS, Linux, and Windows, and automates creating a GitHub release. The pipeline can run the compilation for each platform simultaneously making the compilation and release process much easier.įor an easy setup, we currently provide Tauri Action, a GitHub Action that runs on all the supported platforms, compiles your software, generates the necessary artifacts, and uploads them to a new GitHub release. The next best option is to compile utilizing a CI/CD pipeline hosted on something like GitHub Actions, Azure Pipelines, GitLab, or other options. Tauri relies heavily on native libraries and toolchains, so meaningful cross-compilation is not possible at the current moment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |