Skip to content

Commit

Permalink
fix:ascii app name build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjj1024 committed Oct 22, 2024
1 parent f0c12ae commit 24b5be7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src-tauri/src/command/pake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ pub async fn update_config_file(
.replace("-1", width.as_str())
.replace("-2", height.as_str());
if ascii {
contents = contents.replace("-3", r#"["all"]"#);
} else {
contents = contents.replace(
"-3",
r#"["deb", "appimage", "nsis", "app", "dmg", "updater"]"#,
);
} else {
contents = contents.replace("-3", r#"["all"]"#);
}
// println!("Updated config file: {}", contents);
// The new file content, using Base64 encoding
Expand Down
2 changes: 0 additions & 2 deletions src/pages/edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,6 @@ const onSubmit = async () => {
'src-tauri/tauri.conf.json',
store.currentProject.name
)
console.log('configSha---', configSha)
try {
// if name is ASCII
const configContent: any = await invoke('update_config_file', {
Expand All @@ -577,7 +576,6 @@ const onSubmit = async () => {
height: appForm.height.toString(),
ascii: isAlphanumeric(appForm.showName),
})
console.log('config data:', configContent)
// update config file
const updateRes: any = await githubApi.updateConfigFile(
store.userInfo.login,
Expand Down

0 comments on commit 24b5be7

Please sign in to comment.