Skip to content

Commit 007e1d2

Browse files
committed
Merge branch 'dev'
2 parents 51fd45c + 9c1d35e commit 007e1d2

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

.github/workflows/build-installer.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,13 +255,13 @@ jobs:
255255
# Copy executable
256256
Copy-Item "portable\TranslateBookWithLLM.exe" "portable-package\"
257257
258-
# Copy configuration and docs
258+
# Copy configuration
259259
Copy-Item ".env.example" "portable-package\.env.example"
260260
Copy-Item ".env.example" "portable-package\.env"
261-
Copy-Item "README.md" "portable-package\"
262-
Copy-Item "LICENSE" "portable-package\"
263261
264262
# Copy optional docs if they exist
263+
if (Test-Path "README.md") { Copy-Item "README.md" "portable-package\" }
264+
if (Test-Path "LICENSE") { Copy-Item "LICENSE" "portable-package\" }
265265
if (Test-Path "SIMPLE_MODE_README.md") { Copy-Item "SIMPLE_MODE_README.md" "portable-package\" }
266266
if (Test-Path "TRANSLATION_SIGNATURE.md") { Copy-Item "TRANSLATION_SIGNATURE.md" "portable-package\" }
267267

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ jobs:
4949
type=semver,pattern={{major}}.{{minor}}
5050
# Tag with major on tags (e.g., v1.2.3 -> 1)
5151
type=semver,pattern={{major}}
52-
# Tag with commit SHA (short)
53-
type=sha,prefix={{branch}}-
52+
# Tag with commit SHA (short) - only on branch pushes, not tags
53+
type=sha,prefix=sha-,enable=${{ github.ref_type == 'branch' }}
5454
5555
- name: Build and push Docker image
5656
uses: docker/build-push-action@v5
File renamed without changes.

TranslateBookWithLLM.spec

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,12 @@ datas = [
7676
('src/web/templates', 'src/web/templates'),
7777
# Configuration example
7878
('.env.example', '.'),
79-
# Documentation
80-
('README.md', '.'),
81-
('LICENSE', '.'),
8279
]
8380

8481
# Check if optional files exist before adding
8582
optional_files = [
83+
('README.md', '.'),
84+
('LICENSE', '.'),
8685
('SIMPLE_MODE_README.md', '.'),
8786
('TRANSLATION_SIGNATURE.md', '.'),
8887
('DOCKER.md', '.'),

0 commit comments

Comments
 (0)