diff --git a/build/icons/vvproj.icns b/build/icons/aisp.icns
similarity index 100%
rename from build/icons/vvproj.icns
rename to build/icons/aisp.icns
diff --git a/build/icons/vvproj.ico b/build/icons/aisp.ico
similarity index 100%
rename from build/icons/vvproj.ico
rename to build/icons/aisp.ico
diff --git a/build/installer_linux.sh b/build/installer_linux.sh
index f4bd22e9..77b4368c 100755
--- a/build/installer_linux.sh
+++ b/build/installer_linux.sh
@@ -429,7 +429,7 @@ cat << EOS > "${MIME_INSTALL_DIR}/packages/aivisspeech.xml"
AivisSpeech Project file
AivisSpeech プロジェクトファイル
-
+
diff --git a/electron-builder.config.js b/electron-builder.config.js
index 99c4d42c..19caa039 100644
--- a/electron-builder.config.js
+++ b/electron-builder.config.js
@@ -62,11 +62,11 @@ const builderOptions = {
files: ["dist/**/*", "package.json"],
fileAssociations: [
{
- ext: "vvproj",
+ ext: "aisp",
name: "AivisSpeech Project file",
description: "AivisSpeech Project file",
role: "Editor",
- icon: "icons/vvproj." + (isMac ? "icns" : "ico"),
+ icon: "icons/aisp." + (isMac ? "icns" : "ico"),
},
{
ext: "vvpp",
diff --git a/src/backend/electron/main.ts b/src/backend/electron/main.ts
index eb87e33f..42c47222 100644
--- a/src/backend/electron/main.ts
+++ b/src/backend/electron/main.ts
@@ -395,7 +395,7 @@ async function createWindow() {
let projectFilePath = "";
if (isMac) {
if (filePathOnMac) {
- if (filePathOnMac.endsWith(".vvproj")) {
+ if (filePathOnMac.endsWith(".aisp")) {
projectFilePath = encodeURI(filePathOnMac);
}
filePathOnMac = undefined;
@@ -406,7 +406,7 @@ async function createWindow() {
if (
fs.existsSync(filePath) &&
fs.statSync(filePath).isFile() &&
- filePath.endsWith(".vvproj")
+ filePath.endsWith(".aisp")
) {
projectFilePath = encodeURI(filePath);
}
@@ -759,7 +759,7 @@ ipcMainHandle("SHOW_PROJECT_SAVE_DIALOG", async (_, { title, defaultPath }) => {
dialog.showSaveDialog(win, {
title,
defaultPath,
- filters: [{ name: "AivisSpeech Project file", extensions: ["vvproj"] }],
+ filters: [{ name: "AivisSpeech Project file", extensions: ["aisp"] }],
properties: ["showOverwriteConfirmation"],
})
);
@@ -772,7 +772,7 @@ ipcMainHandle("SHOW_PROJECT_SAVE_DIALOG", async (_, { title, defaultPath }) => {
ipcMainHandle("SHOW_PROJECT_LOAD_DIALOG", async (_, { title }) => {
const result = await dialog.showOpenDialog(win, {
title,
- filters: [{ name: "AivisSpeech Project file", extensions: ["vvproj"] }],
+ filters: [{ name: "AivisSpeech Project file", extensions: ["aisp"] }],
properties: ["openFile", "createDirectory", "treatPackageAsDirectory"],
});
if (result.canceled) {
@@ -1213,8 +1213,8 @@ app.on("second-instance", async (event, argv, workDir, rawData) => {
reloadNeeded: true,
});
}
- } else if (data.filePath.endsWith(".vvproj")) {
- log.info("Second instance launched with vvproj file");
+ } else if (data.filePath.endsWith(".aisp")) {
+ log.info("Second instance launched with aisp file");
ipcMainSend(win, "LOAD_PROJECT_FILE", {
filePath: data.filePath,
confirm: true,
diff --git a/src/components/Talk/TalkEditor.vue b/src/components/Talk/TalkEditor.vue
index d4ce0464..db3bb0fb 100644
--- a/src/components/Talk/TalkEditor.vue
+++ b/src/components/Talk/TalkEditor.vue
@@ -512,14 +512,14 @@ const loadDraggedFile = (event: { dataTransfer: DataTransfer | null }) => {
case ".txt":
store.dispatch("COMMAND_IMPORT_FROM_FILE", { filePath: file.path });
break;
- case ".vvproj":
+ case ".aisp":
store.dispatch("LOAD_PROJECT_FILE", { filePath: file.path });
break;
default:
store.dispatch("SHOW_ALERT_DIALOG", {
title: "対応していないファイルです",
message:
- "テキストファイル (.txt) とAivisSpeechプロジェクトファイル (.vvproj) に対応しています。",
+ "テキストファイル (.txt) とAivisSpeechプロジェクトファイル (.aisp) に対応しています。",
});
}
};
diff --git a/src/store/project.ts b/src/store/project.ts
index 8617d7ea..5c871081 100755
--- a/src/store/project.ts
+++ b/src/store/project.ts
@@ -510,7 +510,7 @@ export const projectStore = createPartialStore({
if (!filePath) {
// if new project: use generated name
- defaultPath = `${context.getters.DEFAULT_PROJECT_FILE_BASE_NAME}.vvproj`;
+ defaultPath = `${context.getters.DEFAULT_PROJECT_FILE_BASE_NAME}.aisp`;
} else {
// if saveAs for existing project: use current project path
defaultPath = filePath;