Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 31 additions & 31 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,25 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # copier dont like shallow clone
fetch-depth: 0 # copier dont like shallow clone
path: ${{ env.repo-dir }}
- name: Install Copier
run: pipx install copier -v
- name: Generate project from template
run: |
copier copy ${{ env.repo-dir }} . \
--vcs-ref HEAD --force --defaults \
--data project_name=${{ env.project-name }} \
--data template=${{ matrix.template }}
shopt -s dotglob nullglob
mv ${{ env.project-name }}/* ./
rmdir ${{ env.project-name }}
rm -rf ${{ env.repo-dir }}
copier copy ${{ env.repo-dir }} . \
--vcs-ref HEAD --force --defaults \
--data project_name=${{ env.project-name }} \
--data template=${{ matrix.template }}
shopt -s dotglob nullglob
mv ${{ env.project-name }}/* ./
rmdir ${{ env.project-name }}
rm -rf ${{ env.repo-dir }}
- name: List files
run: |
echo "PWD: $PWD"
echo "Files:"
find .
echo "PWD: $PWD"
echo "Files:"
find .
- name: Upload generated project
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -151,33 +151,33 @@ jobs:
- name: Install system dependencies (ubuntu only)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: Install project dependencies
run: |
pnpm install
uv sync
pnpm install
uv sync

- name: Test Building (Windows)
if: matrix.os == 'windows-latest'
shell: pwsh
run: |
scripts\windows\download-py.ps1
scripts\windows\build.ps1
scripts\windows\download-py.ps1
scripts\windows\build.ps1
- name: Test Building (Linux)
if: matrix.os == 'ubuntu-latest'
shell: bash
run: |
chmod +x scripts/linux/*.sh
scripts/linux/download-py.sh
scripts/linux/build.sh
chmod +x scripts/linux/*.sh
scripts/linux/download-py.sh
scripts/linux/build.sh
- name: Test Building (macOS)
if: matrix.os == 'macos-latest'
shell: bash
run: |
chmod +x scripts/macos/*.sh
scripts/macos/download-py.sh
scripts/macos/build.sh
chmod +x scripts/macos/*.sh
scripts/macos/download-py.sh
scripts/macos/build.sh

- name: Upload build artifacts
uses: actions/upload-artifact@v4
Expand All @@ -189,13 +189,13 @@ jobs:
# ```
# see: <https://github.com/pytauri/example-nicegui-app/releases>
path: |
target/*/bundle/*/*.deb
target/*/bundle/*/*.rpm
target/*/bundle/*/*.AppImage
target/*/bundle/*/*.msi
target/*/bundle/*/*.exe
target/*/bundle/*/*.dmg
target/*/bundle/*/*.app/
target/*/bundle/*/*.deb
target/*/bundle/*/*.rpm
target/*/bundle/*/*.AppImage
target/*/bundle/*/*.msi
target/*/bundle/*/*.exe
target/*/bundle/*/*.dmg
target/*/bundle/*/*.app/
if-no-files-found: error

# https://github.com/marketplace/actions/alls-green#why
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
**/__pycache__/

**/node_modules/
target/
.venv/
.idea/

.generated_template
.ruff_cache
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12
26 changes: 12 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,23 @@ Alternatively, you can modify it to suit your workflow.

- [#22](https://github.com/pytauri/create-pytauri-app/pull/22) - fix(svelte): fix incorrect `frontendDist` path in svelte template.

The output directory for Svelte template has now been changed from `build` directory to `dist` directory to match the `build.frontendDist` setting in `tauri.conf.json`.
The output directory for Svelte template has now been changed from `build` directory to `dist` directory to match the `build.frontendDist` setting in `tauri.conf.json`.

- [#20](https://github.com/pytauri/create-pytauri-app/pull/20) - fix: fix Linux and macOS build scripts.
- Pass the `libpython` path correctly on Linux and macOS as `-L` arguments to `RUSTFLAGS`.
- Temporarily disable `appimage` bundle target

- Pass the `libpython` path correctly on Linux and macOS as `-L` arguments to `RUSTFLAGS`.
- Temporarily disable `appimage` bundle target
Currently unable to build `appimage`, see <https://github.com/python-pillow/Pillow/issues/9198>.

Currently unable to build `appimage`, see <https://github.com/python-pillow/Pillow/issues/9198>.
- Change the default `identifier` to `com.username.{{ project_name }}`

- Change the default `identifier` to `com.username.{{ project_name }}`

Tauri no longer recommends identifiers ending with `.app`, see <https://github.com/tauri-apps/tauri/issues/12674>.
Tauri no longer recommends identifiers ending with `.app`, see <https://github.com/tauri-apps/tauri/issues/12674>.

### Security

- [#19](https://github.com/pytauri/create-pytauri-app/pull/19) - chore(deps-dev): bump vite from 6.3.5 to 6.3.6 in the npm_and_yarn group across 1 directory.

bump `vite` to `6.3.6` to fix security advisory.
bump `vite` to `6.3.6` to fix security advisory.

### Internal

Expand All @@ -66,9 +65,8 @@ Alternatively, you can modify it to suit your workflow.
### Added

- [#18](https://github.com/pytauri/create-pytauri-app/pull/18) - feat: bump `pytauri` to `v0.8`.

- bump `pytauri` monorepo to `v0.8`
- bump `python-build-standard` to `20250828`
- bump `pytauri` monorepo to `v0.8`
- bump `python-build-standard` to `20250828`

### Changed

Expand Down Expand Up @@ -97,9 +95,9 @@ Alternatively, you can modify it to suit your workflow.
### Changed

- [#7](https://github.com/pytauri/create-pytauri-app/pull/7) - feat: update to pytauri `v0.6.0`.
- Bump all pytauri packages to `0.6`
- Migrate for pytauri `v0.6` [breaking changes](https://pytauri.github.io/pytauri/0.6/CHANGELOG/)
- Bump `pyo3` to `0.25`
- Bump all pytauri packages to `0.6`
- Migrate for pytauri `v0.6` [breaking changes](https://pytauri.github.io/pytauri/0.6/CHANGELOG/)
- Bump `pyo3` to `0.25`

## [0.1.0]

Expand Down
17 changes: 17 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Contributing

Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.

## Environment setup

Make sure you have installed `Python`, `uv`, `Node.js` and `pnpm` as documented.

Also, you need `bash`. If you are on Windows, you can use [Git for Windows](https://gitforwindows.org/).

```bash
# install dev dependencies and tools
uv sync

# activate venv
.venv\Scripts\activate
```
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@ The recommended way to start a new PyTauri project.

## How to use

Make sure you have [uv](https://docs.astral.sh/uv/) and [pnpm](https://pnpm.io/) installed.
Make sure you have [uv](https://docs.astral.sh/uv/) installed.

For single use:

```shell
uvx copier copy https://github.com/pytauri/create-pytauri-app .
uvx --from git+https://github.com/pytauri/create-pytauri-app@feat/v0.6.0 create-pytauri-app
```

## Refer
To install the tool (allows usage from anywhere)

```shell
uv tool install git+https://github.com/pytauri/create-pytauri-app@feat/v0.6.0
```

- <https://github.com/orgs/copier-org/discussions/2121>
More info on using tools in uv: https://docs.astral.sh/uv/guides/tools
42 changes: 0 additions & 42 deletions copier.yaml

This file was deleted.

23 changes: 12 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
{
"name": "create-pytauri-app",
"private": true,
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {},
"dependencies": {
"vue": "^3.5.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"@tauri-apps/api": "^2",
"@tauri-apps/plugin-opener": "^2",
"tauri-plugin-pytauri-api": "^0.8.0"
"react": "^18.3.1",
"react-dom": "^18.3.1",
"tauri-plugin-pytauri-api": "^0.8.0",
"vue": "^3.5.13"
},
"devDependencies": {
"vue-tsc": "^2.1.10",
"@vitejs/plugin-vue": "^5.2.1",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.4",
"@sveltejs/adapter-static": "^3.0.6",
"@sveltejs/kit": "^2.9.0",
"@sveltejs/vite-plugin-svelte": "^5.0.0",
"@tauri-apps/cli": "^2",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.4",
"@vitejs/plugin-vue": "^5.2.1",
"oxfmt": "^0.20.0",
"svelte": "^5.0.0",
"svelte-check": "^4.0.0",
"typescript": "~5.6.2",
"vite": "^6.3.6",
"@tauri-apps/cli": "^2"
"vue-tsc": "^2.1.10"
},
"packageManager": "[email protected]+sha256.211e9990148495c9fc30b7e58396f7eeda83d9243eb75407ea4f8650fb161f7c"
}
Loading
Loading