diff --git a/README.md b/README.md index 747d87f..679504a 100644 --- a/README.md +++ b/README.md @@ -6,4 +6,8 @@ yarn build:mac Then check `out` folder # Deployment -Run `yarn deploy:prod` \ No newline at end of file +Run `yarn deploy:prod` + +# Windows Appx Specific Tips +- Install unsigned copy +https://stackoverflow.com/questions/23812471/installing-appx-without-trusted-certificate \ No newline at end of file diff --git a/build/win/appx/assets/SampleAppx.150x150.png b/build/win/appx/assets/SampleAppx.150x150.png index ab7d613..0c1ccd9 100644 Binary files a/build/win/appx/assets/SampleAppx.150x150.png and b/build/win/appx/assets/SampleAppx.150x150.png differ diff --git a/build/win/appx/assets/SampleAppx.310x150.png b/build/win/appx/assets/SampleAppx.310x150.png index 5fea210..4b59225 100644 Binary files a/build/win/appx/assets/SampleAppx.310x150.png and b/build/win/appx/assets/SampleAppx.310x150.png differ diff --git a/build/win/appx/assets/SampleAppx.50x50.png b/build/win/appx/assets/SampleAppx.50x50.png index 1bf4eab..60165b2 100644 Binary files a/build/win/appx/assets/SampleAppx.50x50.png and b/build/win/appx/assets/SampleAppx.50x50.png differ diff --git a/forge.config.js b/forge.config.js index 579799f..b22ae2d 100644 --- a/forge.config.js +++ b/forge.config.js @@ -108,6 +108,18 @@ module.exports = { // assets: path.resolve(__dirname, 'build', 'win', 'appx', 'assets'), // packageBackgroundColor: '#0F0F47', // devCert: path.resolve(__dirname, 'build', 'win', 'appx', 'default.pfx'), + // finalSay: async function() { + // const appxmanifest = path.resolve(__dirname, 'out', 'make', 'appx', 'x64', 'pre-appx', 'AppXManifest.xml') + // const xml = fs.readFileSync(appxmanifest, 'utf-8') + // fs.writeFileSync( + // appxmanifest, + // xml + // .replace('', ''), + // // .replace('runFullTrust', 'internetClient') + // // .replace('Windows.FullTrustApplication', 'Raindrop.io.App'), + // 'utf-8' + // ) + // } // } // } ], diff --git a/package.json b/package.json index b656061..14e70c7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "Raindrop.io", "productName": "Raindrop.io", - "version": "5.3.25", + "version": "0.0.0", "description": "Crossplatform bookmarking app", "main": "src/index.js", "repository": { diff --git a/src/menu.js b/src/menu.js index e84c30c..619121d 100644 --- a/src/menu.js +++ b/src/menu.js @@ -12,7 +12,7 @@ function render() { role: 'appMenu', submenu: [ { role: 'about' }, - ...[renderUpdate()], + ...(process.windowsStore ? [] : [renderUpdate()]), { type: 'separator' }, ...(process.platform == 'darwin' ? [ { role: 'services' }, diff --git a/src/update.js b/src/update.js index 78d955a..1fa1310 100644 --- a/src/update.js +++ b/src/update.js @@ -3,6 +3,9 @@ const isSquirrelStartup = require('electron-squirrel-startup') const updateApp = require('update-electron-app') module.exports = function() { + if (process.windowsStore) + return + if (isSquirrelStartup) return app.quit()