Skip to content

Commit 318dcce

Browse files
authored
Merge branch 'develop' into docs/redesigned-landing
2 parents a4740e3 + 692a2f5 commit 318dcce

268 files changed

Lines changed: 11043 additions & 2943 deletions

File tree

Some content is hidden

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

.github/workflows/build.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,16 @@ on:
1010
release:
1111
types: [published]
1212
pull_request:
13+
14+
permissions:
15+
contents: read
16+
17+
concurrency:
18+
group: build-${{ github.event.pull_request.number || github.ref }}
19+
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.ref_type == 'branch' }}
20+
1321
jobs:
1422
build-apk:
15-
concurrency: ci-${{ github.ref }}
1623
defaults:
1724
run:
1825
working-directory: app
@@ -23,7 +30,7 @@ jobs:
2330
- name: 🔧 Setup java
2431
uses: actions/setup-java@v5
2532
with:
26-
java-version: "17"
33+
java-version: "21"
2734
distribution: "temurin"
2835
- name: 🦀 Setup Rust
2936
uses: actions-rust-lang/setup-rust-toolchain@v1
@@ -561,6 +568,8 @@ jobs:
561568
deploy:
562569
runs-on: ubuntu-24.04
563570
if: github.event_name != 'pull_request'
571+
permissions:
572+
contents: write
564573
outputs:
565574
version: ${{ steps.setup.outputs.BUTTERFLY_VERSION }}
566575
build_number: ${{ steps.setup.outputs.BUTTERFLY_BUILD_NUMBER }}
@@ -891,7 +900,7 @@ jobs:
891900
- name: 🔧 Setup java
892901
uses: actions/setup-java@v5
893902
with:
894-
java-version: "17"
903+
java-version: "21"
895904
distribution: "temurin"
896905
- uses: subosito/flutter-action@v2.23.0
897906
with:

.github/workflows/calibreapp-image-actions.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,28 @@ on:
88
- '**.jpeg'
99
- '**.png'
1010
- '**.webp'
11+
12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
16+
concurrency:
17+
group: compress-pr-${{ github.event.pull_request.number }}
18+
cancel-in-progress: true
19+
1120
jobs:
1221
build:
1322
# Only run on Pull Requests within the same repository, and not from forks.
1423
if: github.event.pull_request.head.repo.full_name == github.repository
1524
name: calibreapp/image-actions
1625
runs-on: ubuntu-latest
26+
timeout-minutes: 30
1727
steps:
1828
- name: Checkout Repo
1929
uses: actions/checkout@v7
2030

2131
- name: Compress Images
22-
uses: calibreapp/image-actions@main
32+
uses: calibreapp/image-actions@2a254d926beda392b8c36e1be95252aa3d534405 # main
2333
with:
2434
# The `GITHUB_TOKEN` is automatically generated by GitHub and scoped only to the repository that is currently running the action. By default, the action can’t update Pull Requests initiated from forked repositories.
2535
# See https://docs.github.com/en/actions/reference/authentication-in-a-workflow and https://help.github.com/en/articles/virtual-environments-for-github-actions#token-permissions

.github/workflows/compress-images.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,26 @@ on:
55
workflow_dispatch:
66
schedule:
77
- cron: "00 23 * * 0"
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
concurrency:
14+
group: compress-images
15+
cancel-in-progress: false
16+
817
jobs:
918
build:
1019
name: calibreapp/image-actions
1120
runs-on: ubuntu-latest
21+
timeout-minutes: 30
1222
steps:
1323
- name: Checkout Repo
1424
uses: actions/checkout@v7
1525
- name: Compress Images
1626
id: calibre
17-
uses: calibreapp/image-actions@main
27+
uses: calibreapp/image-actions@2a254d926beda392b8c36e1be95252aa3d534405 # main
1828
with:
1929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2030
compressOnly: true

.github/workflows/dart.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
name: Dart
1+
name: Dart quality
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
8+
concurrency:
9+
group: dart-${{ github.event.pull_request.number || github.ref }}
10+
cancel-in-progress: true
11+
512
jobs:
613
build:
714
runs-on: ubuntu-24.04
15+
timeout-minutes: 30
816
strategy:
17+
fail-fast: false
918
matrix:
1019
projects: [app, api, tools]
1120
defaults:
@@ -14,6 +23,8 @@ jobs:
1423
steps:
1524
- name: ⬆️ Checkout
1625
uses: actions/checkout@v7
26+
with:
27+
persist-credentials: false
1728
- uses: subosito/flutter-action@v2.23.0
1829
with:
1930
flutter-version-file: app/pubspec.yaml
@@ -23,8 +34,7 @@ jobs:
2334
dart --version
2435
flutter --version
2536
- name: Install dependencies
26-
run: |
27-
flutter pub get
37+
run: flutter pub get
2838
- name: Run flutter gen-l10n
2939
if: matrix.projects == 'app'
3040
run: |
@@ -35,8 +45,7 @@ jobs:
3545
run: dart format --output=none --set-exit-if-changed lib
3646
# Consider passing '--fatal-infos' for slightly stricter analysis.
3747
- name: Analyze project source
38-
run: |
39-
flutter analyze --fatal-infos
48+
run: flutter analyze --fatal-infos
4049
- name: Run build_runner
4150
if: matrix.projects != 'tools'
4251
run: dart run build_runner build --delete-conflicting-outputs

.github/workflows/deploy.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,30 @@
11
name: Deploy documentation
22

33
on:
4-
# Trigger the workflow every time you push to the `main` branch
5-
# Using a different branch name? Replace `main` with your branch’s name
64
push:
7-
# Allows you to run this workflow manually from the Actions tab on GitHub.
5+
branches:
6+
- develop
7+
- main
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
13+
concurrency:
14+
group: deploy-${{ github.ref }}
15+
cancel-in-progress: true
16+
1017
jobs:
1118
build:
1219
runs-on: ubuntu-latest
20+
timeout-minutes: 30
1321
defaults:
1422
run:
1523
working-directory: docs
1624
steps:
1725
- uses: actions/checkout@v7
26+
with:
27+
persist-credentials: false
1828
- name: Install pnpm
1929
uses: pnpm/action-setup@v6
2030
with:
@@ -26,7 +36,7 @@ jobs:
2636
cache: "pnpm"
2737
cache-dependency-path: docs/pnpm-lock.yaml
2838
- name: Install dependencies
29-
run: pnpm install
39+
run: pnpm install --frozen-lockfile
3040
- name: Build
3141
run: pnpm build
3242
- name: Deploy to SFTP
@@ -44,12 +54,15 @@ jobs:
4454
rsync -avz --delete -e "ssh -i sftp_key -o UserKnownHostsFile=known_hosts" dist/ $SFTP_USERNAME@$SFTP_HOST:/var/www/butterfly.linwood
4555
web:
4656
runs-on: ubuntu-24.04
57+
timeout-minutes: 60
4758
defaults:
4859
run:
4960
working-directory: app
5061
steps:
5162
- name: ⬆️ Checkout
5263
uses: actions/checkout@v7
64+
with:
65+
persist-credentials: false
5366
- uses: subosito/flutter-action@v2.23.0
5467
with:
5568
flutter-version-file: app/pubspec.yaml
@@ -65,7 +78,7 @@ jobs:
6578
working-directory: .
6679
run: dart run tools/build_onenote_web.dart
6780
- name: Get Git Commit Hash
68-
run: echo "GIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
81+
run: echo "GIT_HASH=$(git rev-parse HEAD)" >> "$GITHUB_ENV"
6982
- name: Set flavor
7083
if: github.ref != 'refs/heads/main'
7184
run: |

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ on:
1313
type: boolean
1414
required: false
1515

16+
permissions:
17+
contents: read
18+
19+
concurrency:
20+
group: release-${{ github.ref }}
21+
cancel-in-progress: false
22+
1623
jobs:
1724
update-changelog:
1825
runs-on: ubuntu-24.04

.github/workflows/update-screenshots.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@ permissions:
1010
contents: write
1111
pull-requests: write
1212

13+
concurrency:
14+
group: update-screenshots
15+
cancel-in-progress: false
16+
1317
jobs:
1418
update-screenshots:
1519
runs-on: ubuntu-24.04
20+
timeout-minutes: 60
1621
steps:
1722
- name: Checkout repo
1823
uses: actions/checkout@v7
@@ -41,7 +46,7 @@ jobs:
4146

4247
- name: Compress generated screenshots
4348
id: calibre
44-
uses: calibreapp/image-actions@main
49+
uses: calibreapp/image-actions@2a254d926beda392b8c36e1be95252aa3d534405 # main
4550
with:
4651
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4752
compressOnly: true

CHANGELOG.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
# Changelog
22

3-
<!--ENTER CHANGELOG HERE-->
3+
<!--ENTER CHANGELOG HERE-->
4+
5+
## 2.6.0-beta.3 (2026-07-27)
6+
7+
* Add shear property for elements
8+
* Add camera rotation support ([#977](https://github.com/LinwoodDev/Butterfly/issues/977))
9+
* Add custom fonts to label ([#1011](https://github.com/LinwoodDev/Butterfly/issues/1011))
10+
* Add option to customize default file name globally and in template ([#1041](https://github.com/LinwoodDev/Butterfly/issues/1041))
11+
* Add flip horizontal and vertical to all elements ([#1058](https://github.com/LinwoodDev/Butterfly/issues/1058))
12+
* Improve negative scaling
13+
* Improve rotated elements transformtion ([#1099](https://github.com/LinwoodDev/Butterfly/issues/1099))
14+
* Improve rendering reliability if baking fails
15+
* Fix embed/web loading errors ([#1167](https://github.com/LinwoodDev/Butterfly/issues/1167))
16+
* Fix file previews resetting the language to the system locale
17+
* Fix filename preview appearing when renaming existing documents
18+
* Fix navigation menus broken on mobile layout ([#1177](https://github.com/LinwoodDev/Butterfly/issues/1177))
19+
* Fix creating packs from the selection menu ([#1178](https://github.com/LinwoodDev/Butterfly/issues/1178))
20+
* Fix moving collection elements to layers ([#1176](https://github.com/LinwoodDev/Butterfly/issues/1176))
21+
* Fix unreliable keyboard shortcuts after loading toolbars ([#1186](https://github.com/LinwoodDev/Butterfly/issues/1186))
22+
23+
Read more here: https://linwood.dev/butterfly/2.6.0-beta.3
424

525
## 2.6.0-beta.2 (2026-07-13)
626

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
| Version | Supported | |
66
| -------------------------- | ------------------ | ----------------------------------------------------------------------------- |
7-
| 2.6-dev (Dreamy Duskywing) | :warning: | [Release](https://github.com/LinwoodDev/butterfly/releases/tag/v2.6.0-beta.2) |
7+
| 2.6-dev (Dreamy Duskywing) | :warning: | [Release](https://github.com/LinwoodDev/butterfly/releases/tag/v2.6.0-beta.3) |
88
| 2.5.4 (Crimson Red) | :white_check_mark: | [Release](https://github.com/LinwoodDev/butterfly/releases/tag/v2.5.4) |
99
| 2.4.4 (Black Hairstreak) | :x: | [Release](https://github.com/LinwoodDev/butterfly/releases/tag/v2.4.4) |
1010
| 2.3.4 (Adonis Blue) | :x: | [Release](https://github.com/LinwoodDev/butterfly/releases/tag/v2.3.4) |

api/lib/src/helpers/search.freezed.dart

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)