Code Monkey home page Code Monkey logo

Comments (11)

plantindesk avatar plantindesk commented on June 27, 2024 1

Thats best idea

from privacy.sexy.

undergroundwires avatar undergroundwires commented on June 27, 2024 1

So hiding window until loaded is released as part of 0.13.3 πŸŽ‰

The packaged application is now arm64 (Apple Silicon) native. So it should run smoth now, feel free to verify this with 0.13.3 @AlexanderDankin.

It’s weird because I have never configured this arm64 build πŸ˜…. I guess this is because macOS GitHub runner (CI/CD) agents have been updated automatically to be ARM-based, and this resulted in ARM-only builds. I verify this by running file /Applications/privacy.sexy.app/Contents/MacOS/privacy.sexy command, which gives me:



/Applications/privacy.sexy.app/Contents/MacOS/privacy.sexy: Mach-O 64-bit executable arm64

This will break desktop application on all other Intel-based macs 🀦. So I will migrate to universal builds for macOS in 0.13.4.

I will also update desktop execution tests (which actually installs the software and ensures it runs OK), to run on both Intel and ARM-based macs to verify that it runs fine on both platforms.

from privacy.sexy.

undergroundwires avatar undergroundwires commented on June 27, 2024

Hi @AlexanderDankin,

I guess you mean the desktop application. It works fine on M processors for me. What issue did you have?

from privacy.sexy.

AlexanderDankin avatar AlexanderDankin commented on June 27, 2024

There are no problems as such, except for the application taking too long to start up.
I can only speculate, but maybe it's because the application is optimized for
intel processors.

from privacy.sexy.

plantindesk avatar plantindesk commented on June 27, 2024

There are no problems as such, except for the application taking too long to start up. I can only speculate, but maybe it's because the application is optimized for intel processors.

The app is build using ElectronJS which is a framework that utilize web technologies and therefore are not native in the traditional sense. So it lacks performance and is resource intensive

from privacy.sexy.

undergroundwires avatar undergroundwires commented on June 27, 2024

The binary for macOS is x64, but this gets emulated on Apple that has performance impact:

Native apps run more efficiently than translated apps because the compiler is able to optimize your code for the target architecture. An app that supports only the x86_64 architecture must run under Rosetta translation on Apple silicon
Apple Documentation

πŸš€ I just added System Requirements docs to clarify this: system-requirements.md.


Solution suggestion 1: Universal packages

So changing macOS releases to universal packages may help with the issue. This seems to be basically packaging ARM and x64 versions together in same file.

@plantindesk is right. Here is the electron-builder configuration. Luckily electron-builder supports universal packages:


Solution suggestion 2: Do not show the white blank page

Another think we can do is to avoid showing white blank page while application is loading, see this blog post or this for visual examples.


What do you think?

from privacy.sexy.

plantindesk avatar plantindesk commented on June 27, 2024

I think building both arm64 and x64 build for MacOS

from privacy.sexy.

undergroundwires avatar undergroundwires commented on June 27, 2024

How about hiding the window until HTML/CSS/JS is loaded? I guess this should not be only macOS only but also be part of Windows/Linux versions. Do you see any side-effect having this on Windows/Linux?

I demonstrate this on Linux:

Now (with initial blank page) After (window hidden until loaded)
with-flash without-flash

from privacy.sexy.

plantindesk avatar plantindesk commented on June 27, 2024

Off topic: Also you use Ubuntu 🫀 cause see this https://prism-break.org

image

from privacy.sexy.

AlexanderDankin avatar AlexanderDankin commented on June 27, 2024

Thank you! Indeed the app started to open much faster.

from privacy.sexy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.