Skip to content

Commit bb94426

Browse files
committed
build: patch drop-files.html url at build
1 parent 83fe2b4 commit bb94426

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

src-build/ci-createDistReleaseConfig.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,10 @@ async function ciCreateDistReleaseConfig() {
8989
configJson.tauri.windows[0].title = configJson.package.productName;
9090
if(os.platform() === 'win32'){
9191
configJson.tauri.windows[0].url = `https://phtauri.localhost/v${phoenixVersion}/`;
92+
configJson.tauri.windows[2].url = `https://phtauri.localhost/v${phoenixVersion}/drop-files.html`;
9293
} else {
9394
configJson.tauri.windows[0].url = `phtauri://localhost/v${phoenixVersion}/`;
95+
configJson.tauri.windows[2].url = `phtauri://localhost/v${phoenixVersion}/drop-files.html`;
9496
}
9597
if(os.platform() === 'darwin'){
9698
// inject macos icons

src-build/createDistBundleReleaseConfig.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ async function createDistReleaseConfig() {
2424
const phoenixVersion = configJson.package.version;
2525
if(os.platform() === 'win32'){
2626
configJson.tauri.windows[0].url = `https://phtauri.localhost/v${phoenixVersion}/`;
27+
configJson.tauri.windows[2].url = `https://phtauri.localhost/v${phoenixVersion}/drop-files.html`;
2728
} else {
2829
configJson.tauri.windows[0].url = `phtauri://localhost/v${phoenixVersion}/`;
30+
configJson.tauri.windows[2].url = `phtauri://localhost/v${phoenixVersion}/drop-files.html`;
2931
}
3032
if(os.platform() === 'darwin'){
3133
// inject macos icons

src-build/createDistReleaseConfig.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ async function createDistReleaseConfig() {
2323
const phoenixVersion = configJson.package.version;
2424
if(os.platform() === 'win32'){
2525
configJson.tauri.windows[0].url = `https://phtauri.localhost/v${phoenixVersion}/`;
26+
configJson.tauri.windows[2].url = `https://phtauri.localhost/v${phoenixVersion}/drop-files.html`;
2627
} else {
2728
configJson.tauri.windows[0].url = `phtauri://localhost/v${phoenixVersion}/`;
29+
configJson.tauri.windows[2].url = `phtauri://localhost/v${phoenixVersion}/drop-files.html`;
2830
}
2931
if(os.platform() === 'darwin'){
3032
// inject macos icons

src-build/createDistTestReleaseConfig.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ async function createDistTestReleaseConfig() {
2525
const phoenixVersion = configJson.package.version;
2626
if(os.platform() === 'win32'){
2727
configJson.tauri.windows[0].url = `https://phtauri.localhost/v${phoenixVersion}/`;
28+
configJson.tauri.windows[2].url = `https://phtauri.localhost/v${phoenixVersion}/drop-files.html`;
2829
} else {
2930
configJson.tauri.windows[0].url = `phtauri://localhost/v${phoenixVersion}/`;
31+
configJson.tauri.windows[2].url = `phtauri://localhost/v${phoenixVersion}/drop-files.html`;
3032
}
3133
if(os.platform() === 'darwin'){
3234
// inject macos icons

src-build/createSrcReleaseConfig.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ async function createSrcReleaseConfig() {
2323
const phoenixVersion = configJson.package.version;
2424
if(os.platform() === 'win32'){
2525
configJson.tauri.windows[0].url = `https://phtauri.localhost/v${phoenixVersion}/`;
26+
configJson.tauri.windows[2].url = `https://phtauri.localhost/v${phoenixVersion}/drop-files.html`;
2627
} else {
2728
configJson.tauri.windows[0].url = `phtauri://localhost/v${phoenixVersion}/`;
29+
configJson.tauri.windows[2].url = `phtauri://localhost/v${phoenixVersion}/drop-files.html`;
2830
}
2931
if(os.platform() === 'darwin'){
3032
// inject macos icons

0 commit comments

Comments
 (0)