Skip to content

Commit

Permalink
build: patch drop-files.html url at build
Browse files Browse the repository at this point in the history
  • Loading branch information
abose committed Jun 21, 2024
1 parent 83fe2b4 commit bb94426
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src-build/ci-createDistReleaseConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ async function ciCreateDistReleaseConfig() {
configJson.tauri.windows[0].title = configJson.package.productName;
if(os.platform() === 'win32'){
configJson.tauri.windows[0].url = `https://phtauri.localhost/v${phoenixVersion}/`;
configJson.tauri.windows[2].url = `https://phtauri.localhost/v${phoenixVersion}/drop-files.html`;
} else {
configJson.tauri.windows[0].url = `phtauri://localhost/v${phoenixVersion}/`;
configJson.tauri.windows[2].url = `phtauri://localhost/v${phoenixVersion}/drop-files.html`;
}
if(os.platform() === 'darwin'){
// inject macos icons
Expand Down
2 changes: 2 additions & 0 deletions src-build/createDistBundleReleaseConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ async function createDistReleaseConfig() {
const phoenixVersion = configJson.package.version;
if(os.platform() === 'win32'){
configJson.tauri.windows[0].url = `https://phtauri.localhost/v${phoenixVersion}/`;
configJson.tauri.windows[2].url = `https://phtauri.localhost/v${phoenixVersion}/drop-files.html`;
} else {
configJson.tauri.windows[0].url = `phtauri://localhost/v${phoenixVersion}/`;
configJson.tauri.windows[2].url = `phtauri://localhost/v${phoenixVersion}/drop-files.html`;
}
if(os.platform() === 'darwin'){
// inject macos icons
Expand Down
2 changes: 2 additions & 0 deletions src-build/createDistReleaseConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ async function createDistReleaseConfig() {
const phoenixVersion = configJson.package.version;
if(os.platform() === 'win32'){
configJson.tauri.windows[0].url = `https://phtauri.localhost/v${phoenixVersion}/`;
configJson.tauri.windows[2].url = `https://phtauri.localhost/v${phoenixVersion}/drop-files.html`;
} else {
configJson.tauri.windows[0].url = `phtauri://localhost/v${phoenixVersion}/`;
configJson.tauri.windows[2].url = `phtauri://localhost/v${phoenixVersion}/drop-files.html`;
}
if(os.platform() === 'darwin'){
// inject macos icons
Expand Down
2 changes: 2 additions & 0 deletions src-build/createDistTestReleaseConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ async function createDistTestReleaseConfig() {
const phoenixVersion = configJson.package.version;
if(os.platform() === 'win32'){
configJson.tauri.windows[0].url = `https://phtauri.localhost/v${phoenixVersion}/`;
configJson.tauri.windows[2].url = `https://phtauri.localhost/v${phoenixVersion}/drop-files.html`;
} else {
configJson.tauri.windows[0].url = `phtauri://localhost/v${phoenixVersion}/`;
configJson.tauri.windows[2].url = `phtauri://localhost/v${phoenixVersion}/drop-files.html`;
}
if(os.platform() === 'darwin'){
// inject macos icons
Expand Down
2 changes: 2 additions & 0 deletions src-build/createSrcReleaseConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ async function createSrcReleaseConfig() {
const phoenixVersion = configJson.package.version;
if(os.platform() === 'win32'){
configJson.tauri.windows[0].url = `https://phtauri.localhost/v${phoenixVersion}/`;
configJson.tauri.windows[2].url = `https://phtauri.localhost/v${phoenixVersion}/drop-files.html`;
} else {
configJson.tauri.windows[0].url = `phtauri://localhost/v${phoenixVersion}/`;
configJson.tauri.windows[2].url = `phtauri://localhost/v${phoenixVersion}/drop-files.html`;
}
if(os.platform() === 'darwin'){
// inject macos icons
Expand Down

0 comments on commit bb94426

Please sign in to comment.