Skip to content

Commit 83f7113

Browse files
committed
deploy: 8a905e4
1 parent 856d820 commit 83f7113

File tree

29 files changed

+280
-92
lines changed

29 files changed

+280
-92
lines changed

appConfig.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ window.AppConfig = {
2424
"app_notification_url": "assets/notifications/dev/",
2525
"app_update_url": "https://updates.phcode.io/tauri/update-latest-experimental-build.json",
2626
"linting.enabled_by_default": true,
27-
"build_timestamp": "2024-02-22T16:18:56.905Z",
27+
"build_timestamp": "2024-02-22T17:57:46.016Z",
2828
"googleAnalyticsID": "G-P4HJFPDB76",
2929
"googleAnalyticsIDDesktop": "G-VE5BXWJ0HF",
3030
"mixPanelID": "49c4d164b592be2350fc7af06a259bf3",
@@ -36,7 +36,7 @@ window.AppConfig = {
3636
"bugsnagEnv": "development"
3737
},
3838
"name": "Phoenix",
39-
"version": "3.3.10-19922",
39+
"version": "3.3.10-19925",
4040
"apiVersion": "3.3.10",
4141
"homepage": "https://core.ai",
4242
"issues": {

assets/default-project/en.zip

0 Bytes
Binary file not shown.

assets/sample-projects/HTML5.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

assets/sample-projects/explore.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

brackets-min.js

Lines changed: 51 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15517,7 +15517,7 @@ define("document/DocumentCommandHandlers", function (require, exports, module) {
1551715517
}, CLOSE_TIMER_RESET_INTERVAL);
1551815518
if(closeClickCounter >= 2) {
1551915519
// the user clicked the close button 2 times in the last 4 secs, he's desperate, close the window now!.
15520-
Phoenix.app.closeWindow();
15520+
Phoenix.app.closeWindow(true);
1552115521
}
1552215522
}
1552315523
function attachTauriUnloadHandler() {
@@ -15668,14 +15668,6 @@ define("document/DocumentCommandHandlers", function (require, exports, module) {
1566815668

1566915669
// Reset the untitled document counter before changing projects
1567015670
ProjectManager.on("beforeProjectClose", function () { _nextUntitledIndexToUse = 1; });
15671-
15672-
let windowsUpdateInstallerPlatformLocation;
15673-
function setWindowsUpdateInstallerLocation(location) {
15674-
windowsUpdateInstallerPlatformLocation = location;
15675-
}
15676-
15677-
// private api
15678-
exports._setWindowsUpdateInstallerLocation = setWindowsUpdateInstallerLocation;
1567915671
});
1568015672

1568115673
/*
@@ -39007,7 +38999,6 @@ define("extensionsIntegrated/appUpdater/main", function (require, exports, modul
3900738999
TaskManager = require("features/TaskManager"),
3900839000
StringUtils = require("utils/StringUtils"),
3900939001
NativeApp = require("utils/NativeApp"),
39010-
DocumentCommandHandlers = require("document/DocumentCommandHandlers"),
3901139002
PreferencesManager = require("preferences/PreferencesManager");
3901239003
let updaterWindow, updateTask, updatePendingRestart, updateFailed;
3901339004

@@ -39240,6 +39231,54 @@ define("extensionsIntegrated/appUpdater/main", function (require, exports, modul
3924039231
_sendUpdateCommand(UPDATE_COMMANDS.GET_STATUS);
3924139232
}
3924239233

39234+
async function launchWindowsInstaller() {
39235+
return new Promise((resolve, reject)=>{
39236+
const appdataDir = window._tauriBootVars.appLocalDir;
39237+
window.__TAURI__.path.resolveResource("src-node/installer/launch-windows-installer.js")
39238+
.then(async nodeSrcPath=>{
39239+
// this is not supposed to work in linux.
39240+
const argsArray = [nodeSrcPath, appdataDir];
39241+
const command = window.__TAURI__.shell.Command.sidecar('phnode', argsArray);
39242+
command.on('close', data => {
39243+
console.log(`PhNode: command finished with code ${data.code} and signal ${data.signal}`);
39244+
if(data.code !== 0) {
39245+
console.error("Install failed");
39246+
reject();
39247+
return;
39248+
}
39249+
resolve();
39250+
});
39251+
command.on('error', error => {
39252+
console.error(`PhNode: command error: "${error}"`);
39253+
reject();
39254+
});
39255+
command.stdout.on('data', line => {
39256+
console.log(`PhNode: ${line}`);
39257+
});
39258+
command.stderr.on('data', line => console.error(`PhNode: ${line}`));
39259+
command.spawn();
39260+
});
39261+
});
39262+
}
39263+
39264+
let installerLocation;
39265+
async function quitTimeAppUpdateHandler() {
39266+
if(!installerLocation){
39267+
return;
39268+
}
39269+
console.log("Installing update from: ", installerLocation);
39270+
return new Promise(resolve=>{
39271+
// this should never reject as it happens in app quit. rejecting wont affect quit, but its unnecessary.
39272+
if (brackets.platform === "win") {
39273+
launchWindowsInstaller()
39274+
.then(resolve)
39275+
.catch(resolve);
39276+
} else {
39277+
resolve();
39278+
}
39279+
});
39280+
}
39281+
3924339282
let updateInstalledDialogShown = false, updateFailedDialogShown = false;
3924439283
AppInit.appReady(function () {
3924539284
if(!Phoenix.browser.isTauri || Phoenix.isTestWindow) {
@@ -39295,7 +39334,8 @@ define("extensionsIntegrated/appUpdater/main", function (require, exports, modul
3929539334
Math.floor(fileSize*progressPercent/100),
3929639335
fileSize));
3929739336
} else if(eventName === UPDATE_EVENT.INSTALLER_LOCATION) {
39298-
DocumentCommandHandlers._setWindowsUpdateInstallerLocation(data);
39337+
installerLocation = data;
39338+
Phoenix.app.registerQuitTimeAppUpdateHandler(quitTimeAppUpdateHandler);
3929939339
} else if(eventName === UPDATE_EVENT.LOG_ERROR) {
3930039340
logger.reportErrorMessage(data);
3930139341
}

cacheManifest.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"appConfig.js": "d393f71066bb1316ac3fbb1994e4168a",
3-
"assets/default-project/en.zip": "9a2328e4867acb5a74f1f9a0c6c08732",
2+
"appConfig.js": "2279f38e7cf49abf312f13f90b9fec35",
3+
"assets/default-project/en.zip": "cf1aed8ada90ecd1ffda06dc7664d675",
44
"assets/default-project/en/images/cloud1.svg": "aca7bba84a2237f1c1988caea54a67a9",
55
"assets/default-project/en/images/cloud2.svg": "02880216ac461f1578ac8a18f158ce28",
66
"assets/default-project/en/images/cloud3.svg": "7a78bb29bd895ead8c171001244d9b7d",
@@ -120,7 +120,7 @@
120120
"assets/phoenix-splash/live-preview-error.html": "98b11e5ae0c9341ab1450e029065ac7b",
121121
"assets/phoenix-splash/no-preview.html": "2c51d14109552b59976145fe9ac33236",
122122
"assets/phoenix-splash/styles.css": "6809a039001526eeec64eeef1f0ad807",
123-
"assets/sample-projects/bootstrap-blog.zip": "905421fe4ca95fc0eebdaeb203fd125f",
123+
"assets/sample-projects/bootstrap-blog.zip": "0db32624bf4ae3527ded77c7e3d1d8dd",
124124
"assets/sample-projects/bootstrap-blog/assets/brand/bootstrap-logo-white.svg": "2e642df55357162ad28519305c8fd4fe",
125125
"assets/sample-projects/bootstrap-blog/assets/brand/bootstrap-logo.svg": "88eef7f3c2bcf988457a0e6d123c3f1d",
126126
"assets/sample-projects/bootstrap-blog/assets/dist/css/bootstrap.min.css": "6d9c6fda1e7087224431cc8068bb998f",
@@ -130,7 +130,7 @@
130130
"assets/sample-projects/bootstrap-blog/blog.rtl.css": "c6c275bf0b804d3dec264ec7fb3d7677",
131131
"assets/sample-projects/bootstrap-blog/index-rtl.html": "506e2d3fd1c4bb3651377144a62d5e82",
132132
"assets/sample-projects/bootstrap-blog/index.html": "dd8824ad3c9520dc0a825176d20eb694",
133-
"assets/sample-projects/dashboard.zip": "eb5dae33b509ac6102f981c8b46e9299",
133+
"assets/sample-projects/dashboard.zip": "975e7b8f26e26f18c659b94b64c9b379",
134134
"assets/sample-projects/dashboard/assets/brand/bootstrap-logo-white.svg": "2e642df55357162ad28519305c8fd4fe",
135135
"assets/sample-projects/dashboard/assets/brand/bootstrap-logo.svg": "88eef7f3c2bcf988457a0e6d123c3f1d",
136136
"assets/sample-projects/dashboard/assets/dist/css/bootstrap.min.css": "6d9c6fda1e7087224431cc8068bb998f",
@@ -142,7 +142,7 @@
142142
"assets/sample-projects/dashboard/index.html": "ddfda6ea9dfc8e12a8dcbbf065c804de",
143143
"assets/sample-projects/dashboard/signin.css": "a71ff2b493f230e0d6585793c2115809",
144144
"assets/sample-projects/dashboard/signin.html": "b108c183dfa7e2da3d88ec79bee79509",
145-
"assets/sample-projects/explore.zip": "2d322c099a265b9e1d1131574407e7eb",
145+
"assets/sample-projects/explore.zip": "b111e59a2de422f7041789de3b6ef622",
146146
"assets/sample-projects/explore/A-tribute-page.html": "007699e85177db3d1cd87d0d47440b36",
147147
"assets/sample-projects/explore/adjustable-fireworks.html": "706a0995d00d8ae009b5426cf7ee69be",
148148
"assets/sample-projects/explore/ant_colony.html": "d0885229e57caecc83049b50ee98560c",
@@ -232,7 +232,7 @@
232232
"assets/sample-projects/explore/watermelon-pixel.html": "6f6754e8073436bb823807a10a0446ea",
233233
"assets/sample-projects/explore/webmine.html": "9879458a48c757dc6671d408e940da4d",
234234
"assets/sample-projects/explore/whack-a-mole.html": "827f15c53657350b9c898fa27ecf15ac",
235-
"assets/sample-projects/home-pages.zip": "abe35885654c9bcb7d8a420c4afc4c77",
235+
"assets/sample-projects/home-pages.zip": "fdcd7b153054f382a48f5a666a4422e2",
236236
"assets/sample-projects/home-pages/album/index.html": "df20e4a479659463ab9d3f6b4ca4dbd1",
237237
"assets/sample-projects/home-pages/assets/brand/bootstrap-logo-white.svg": "2e642df55357162ad28519305c8fd4fe",
238238
"assets/sample-projects/home-pages/assets/brand/bootstrap-logo.svg": "88eef7f3c2bcf988457a0e6d123c3f1d",
@@ -244,19 +244,19 @@
244244
"assets/sample-projects/home-pages/carousel/index.html": "fc5bf7b2d8640a2c393f465294210e7c",
245245
"assets/sample-projects/home-pages/cover/cover.css": "3738586a82dd90263617020e7f1db82e",
246246
"assets/sample-projects/home-pages/cover/index.html": "a0ae1a11224672532b3466df93ce0821",
247-
"assets/sample-projects/HTML5.zip": "8cc50444d2d07796e2ee329a47a74c36",
247+
"assets/sample-projects/HTML5.zip": "1ad592ef12474565d0a3cf05da17e6ce",
248248
"assets/sample-projects/HTML5/index.html": "ca318e370d63b3e083d3bd63052b8252",
249249
"assets/sample-projects/HTML5/script.js": "47de56d88cd6d866c4f77027128c0dd7",
250250
"assets/sample-projects/HTML5/styles.css": "8c798c8b3bba7e4d49dfe99b4deccd47",
251251
"assets/sample-projects/new-project-list.json": "52493b6373285d18a51a7e0319d812c2",
252252
"assets/sample-projects/zips/bootstrap.zip": "47b3132b5dbf324d6396188cf68ecae1",
253253
"base-config/keyboard.json": "397585f99c96c29c2cc45018a517e02e",
254254
"base-config/readme-keyboard.md": "4a35b329e66feff11a3f080e25695f68",
255-
"brackets-min.js": "911282f77ce0d740be316335915a8375",
255+
"brackets-min.js": "8f0271cc4acab359dd7d813273e2627d",
256256
"brackets.config.dist.json": "dfb6c779721fd40e82349801d4cc55f9",
257257
"brackets.config.staging.json": "be1feb831c8f54a29e4af91220c851e4",
258258
"brackets.js": "8c5ce23dd12cec77e73ebee3bc606b36",
259-
"cacheManifest.json": "c8eaa25979b642f5fb3415538f02267f",
259+
"cacheManifest.json": "dbdf4941ac99670b438fc6e3cf3c97fc",
260260
"command/ChangeShortcutTemplate.html": "e842dfbc58589b3ce1ab1964e13be5cd",
261261
"command/CommandManager.js": "8763fce16883bbef252604330ac3bf49",
262262
"command/Commands.js": "134461b8bfd65167c7054f7a8bbd1bc6",
@@ -265,12 +265,12 @@
265265
"command/KeyboardOverlayMode.js": "8eb29a228b69fe9e299e88af31a0d541",
266266
"command/Keys.js": "1197df29f8ffa01c62cd2700df9ad216",
267267
"command/Menus.js": "a620c28bdccc72d13022b6474a8487f2",
268-
"config.json": "24e1faadc29fffafabf9973f2ccf206b",
268+
"config.json": "433e72c11391e503c44a90d3a9471c53",
269269
"desktop-metrics.html": "203d9a21baede986f0927d61578c3c4b",
270270
"devEnable.html": "5c494d5e246bdb4260557c03b73eea32",
271271
"document/ChangedDocumentTracker.js": "8763dbbd784b9e8a3614a8ee723d5273",
272272
"document/Document.js": "eb760e79fc98a767f350cea658935803",
273-
"document/DocumentCommandHandlers.js": "0935e40c3783cc97a1a7a78c4afd4ee3",
273+
"document/DocumentCommandHandlers.js": "9835f48c963b0b70790ab28119ec2975",
274274
"document/DocumentManager.js": "a6183ec6a19f146cd2068071f25b5d85",
275275
"document/InMemoryFile.js": "34c461337dea2e4b5886586a4f929e6e",
276276
"document/TextRange.js": "12463434e5dbacabd457911259a26c52",
@@ -530,7 +530,7 @@
530530
"extensions/samples/LocalizationExample/strings.js": "165955f19e3f2f55dc717726a4d8e251",
531531
"extensions/samples/README.md": "b42dce1f893127cc677bad4c308adec1",
532532
"extensions/samples/TypingSpeedLogger/main.js": "77e5dc1f043cefd551a7dcc644668644",
533-
"extensionsIntegrated/appUpdater/main.js": "76b5ba7999a415142935e87f41d96ea6",
533+
"extensionsIntegrated/appUpdater/main.js": "afcad5b7745981f94910feeef202125f",
534534
"extensionsIntegrated/DisplayShortcuts/main.js": "36bc9de27fb036b4e301e0667fd9f630",
535535
"extensionsIntegrated/DisplayShortcuts/package.json": "3a7cd9ed7cdf6e5ac56adcd4e6d649bf",
536536
"extensionsIntegrated/DisplayShortcuts/templates/bottom-panel.html": "a41396d82a31ce934992542814e7936e",
@@ -863,7 +863,7 @@
863863
"NodeConnector.js": "22fa4ca985c089e607e4653589a74010",
864864
"phoenix/errno.js": "6ca6e445e77fc2060df5ba36d88a8846",
865865
"phoenix/init_vfs.js": "d50da1cc9edd257b610cd1a0647b6695",
866-
"phoenix/shell.js": "77f85e0a3f06abe8baf54222c9ec8033",
866+
"phoenix/shell.js": "a433be42a1ec94da7ed5fbf98cf598f8",
867867
"phoenix/virtual-server-loader.js": "b357c2a0f5f0fba5db7002a5b83b25ef",
868868
"phoenix/virtualfs.js": "111d6f4f4299db4d55c47e16693a23e4",
869869
"phoenix/virtualServer/config.js": "ef8dd2240e0edf889fb000cf329ed108",
@@ -1027,7 +1027,7 @@
10271027
"styles/images/vertical-thumb-fw-outline.png": "1d4ffb4111e9cf128608c219684aebfb",
10281028
"styles/infobar-styles.less": "fa84b43b16c307f282ddc499d983efb1",
10291029
"styles/jsTreeTheme.less": "aeb352a39e66c41ca3288d45009b13ba",
1030-
"tauri-updater.html": "6d5b787544766e5499ec6d299062ba4d",
1030+
"tauri-updater.html": "e08e111ff50394f5c0b1536866c6eb03",
10311031
"thirdparty/acorn/dist/acorn_loose.js": "680f00bef8a0183895a023a4489c7424",
10321032
"thirdparty/acorn/dist/acorn.js": "aba81c3cb2c2eb924711f7d704d2071c",
10331033
"thirdparty/acorn/dist/walk.js": "a9fd8545eae40503484c2a7534c5fc82",

config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"app_notification_url": "assets/notifications/dev/",
2424
"app_update_url": "https://updates.phcode.io/tauri/update-latest-experimental-build.json",
2525
"linting.enabled_by_default": true,
26-
"build_timestamp": "2024-02-22T16:18:56.905Z",
26+
"build_timestamp": "2024-02-22T17:57:46.016Z",
2727
"googleAnalyticsID": "G-P4HJFPDB76",
2828
"googleAnalyticsIDDesktop": "G-VE5BXWJ0HF",
2929
"mixPanelID": "49c4d164b592be2350fc7af06a259bf3",
@@ -35,7 +35,7 @@
3535
"bugsnagEnv": "development"
3636
},
3737
"name": "Phoenix",
38-
"version": "3.3.10-19922",
38+
"version": "3.3.10-19925",
3939
"apiVersion": "3.3.10",
4040
"homepage": "https://core.ai",
4141
"issues": {

0 commit comments

Comments
 (0)