Skip to content

Commit 59340ea

Browse files
committed
build: try to restore to the old workflow
1 parent 445dc86 commit 59340ea

File tree

4 files changed

+16
-18
lines changed

4 files changed

+16
-18
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ jobs:
6767
VERSION=$(node -e "console.log(require('./package.json').version)")
6868
echo "build-version=$VERSION" >> $GITHUB_OUTPUT
6969
70+
- name: Waiting on All checks
71+
uses: lewagon/wait-on-check-action@v0.2
72+
with:
73+
ref: ${{ github.ref }}
74+
repo-token: ${{ secrets.GITHUB_TOKEN }}
75+
running-workflow-name: 'draft'
76+
7077
- name: Delete outdated drafts
7178
uses: hugo19941994/delete-draft-releases@v1.0.0
7279
env:
@@ -135,13 +142,12 @@ jobs:
135142
- name: Compile & release Electron app
136143
uses: samuelmeuli/action-electron-builder@v1
137144
env:
138-
# GitHub Token for creating GitHub releases
139-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
140145
VITE_APP_VERSION: ${{ needs.draft.outputs.version }}
141146
with:
142-
github_token: ${{ secrets.GITHUB_TOKEN }}
143147
build_script_name: build
144148
args: --config electron-builder.yml
149+
github_token: ${{ secrets.GITHUB_TOKEN }}
150+
release: true
145151
max_attempts: 3
146152

147153
build_web:
@@ -162,12 +168,6 @@ jobs:
162168
- name: Build web target
163169
run: npm run build:web
164170

165-
- name: Create Web App Zip Archive
166-
run: |
167-
cd ./dist/web
168-
zip -r ../../open-llm-vtuber-web-${{ needs.draft.outputs.version }}.zip .
169-
cd ../.. # Go back to the workspace root
170-
171171
- name: Deploy to GitHub Pages
172172
uses: JamesIves/github-pages-deploy-action@v4
173173
with:

electron-builder.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
appId: com.electron.app
2-
productName: "Open LLM Vtuber"
2+
productName: open-llm-vtuber-electron
33
directories:
44
buildResources: resources
55
output: release/${version}
@@ -16,7 +16,7 @@ files:
1616
asarUnpack:
1717
- resources/**
1818
win:
19-
executableName: Open LLM Vtuber
19+
executableName: open-llm-vtuber-electron
2020
icon: resources/icon.ico
2121
nsis:
2222
artifactName: ${name}-${version}-setup.${ext}
@@ -45,9 +45,7 @@ appImage:
4545
artifactName: ${name}-${version}.${ext}
4646
npmRebuild: false
4747
publish:
48-
provider: s3
49-
bucket: open-llm-vtuber-frontend
50-
region: ap-northeast-1
51-
acl: null
48+
provider: github
49+
releaseType: release
5250
electronDownload:
53-
mirror: https://npmmirror.com/mirrors/electron/
51+
mirror: https://npmmirror.com/mirrors/electron/

src/renderer/src/components/canvas/live2d.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const Live2D = memo(
2424
const { mode } = useMode();
2525
const internalContainerRef = useRef<HTMLDivElement>(null);
2626
const { aiState } = useAiState();
27-
const { resetExpression, setExpression } = useLive2DExpression();
27+
const { resetExpression } = useLive2DExpression();
2828
const isPet = mode === 'pet';
2929

3030
// Get canvasRef from useLive2DResize

src/renderer/src/context/live2d-config-context.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export function Live2DConfigProvider({ children }: { children: React.ReactNode }
161161
isLoading,
162162
setIsLoading,
163163
}),
164-
[modelInfo, setModelInfo, isLoading, setIsLoading],
164+
[modelInfo, isLoading, setIsLoading],
165165
);
166166

167167
return (

0 commit comments

Comments
 (0)