Coder Social home page Coder Social logo

electronsecurityscopedbookmarktest's Introduction

Deprecated

No longer maintained.


Electron Security Scoped Bookmark Test App

This tests the implementation of security scoped bookmarks. These are necessary for building MAS (Mac App Store) builds. The only complete documentation is the Github PR, though there is also some in the docs.

Installing

mkdir bookmarkTest
cd bookmarkTest
git clone https://github.com/rr326/ElectronSecurityScopedBookmarkTest .
yarn install

Now you need:

  1. Mac Developer Identity
  2. A Develloer Provisioning Profile with Device IDs for your development machine(s)
  3. Update package.json ==> macDeveloperIdentityHash and provisionprofile
    • macDeveloperIdentityHash - try security find-identity -p codesigning -v and look for Mac Developer: ...
    • provisionprofile - this is a "Mac Provisioning Profile (Development)" exported from your Developer Account

You can try this page for some help on that.

When you've done that, try: yarn dist

Hopefully it will build and sign.

Then try: open dist/mas/ElectronSecurityScopedBookmarkTestApp.app

What Should Happen

Source: Reading the code at atom/browser/ui/file_dialog_mac.mm. Particularly OpenDialogCompletion and GetBookMarkDataFromNSURL

  • Non-MAS build: bookmarks === undefined
  • MAS build
    • securityScopedBookmarks: false ==> bookmarks === []
    • securityScopedBookmarks: true
      • Success: bookmarks === ["SLKDJFLKSDJLSJDLFJSLKJFLS..SJLD"]
      • Error: bookmarks === ['']

electronsecurityscopedbookmarktest's People

Contributors

kant avatar rr326 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

kant

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.