Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packaging for macOS #28

Closed
wants to merge 15 commits into from
Closed

Commits on Dec 17, 2020

  1. vue.config.js: set target to electron

    This avoids issues with require('electron') using fs.readSync() breaking
    when we end up packaging it.
    mook-as committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    98f9ba8 View commit details
    Browse the repository at this point in the history
  2. .gitignore: Add more generated file directories

    These are the defaults for electron-forge.
    mook-as committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    c35704e View commit details
    Browse the repository at this point in the history
  3. Add app:// protocol handler

    When packaged, we will not be able to load file:// URLs (currently not an
    issue because the dev workflow includes running a local HTTP server).  So
    we will need an additional protocol for loading resources.
    mook-as committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    7442306 View commit details
    Browse the repository at this point in the history
  4. package.json: Add @electron-forge/cli

    This will be used to package the application.
    mook-as committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    f5abc90 View commit details
    Browse the repository at this point in the history
  5. Run electron-forge import

    mook-as committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    91dc6ab View commit details
    Browse the repository at this point in the history
  6. package.json: Drop deb & rpm builders for electron-forge

    We will, at the short term at least, not target Linux.
    mook-as committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    76131a8 View commit details
    Browse the repository at this point in the history
  7. forge.config.js: Move forge config outside package.json

    This will be needed later as we get more complex electron-forge
    configuration.
    mook-as committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    f1efe02 View commit details
    Browse the repository at this point in the history
  8. K8s.vue: drop window. prefix before require()

    This was making it hard for webpack to figure out dependencies.
    mook-as committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    acf8ca6 View commit details
    Browse the repository at this point in the history
  9. K8s.vue: read versions as a JS module

    When packaged, we can't just read files off the filesystem (as the layout
    will be different); however, we don't really need to, as we can just import
    it as a module, at which point webpack can find the file ahead of time.
    mook-as committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    2e8f149 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    0f81a78 View commit details
    Browse the repository at this point in the history
  11. src/resources.js: Add abstraction for resources/ directory

    This is needed as the path will be different when the application is
    packaged.
    mook-as committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    a79d5bc View commit details
    Browse the repository at this point in the history
  12. src/window: use app:// protocol when not in DEV

    Because file:// doesn't really work due to security restrictions.
    mook-as committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    a65562c View commit details
    Browse the repository at this point in the history
  13. package.json: Add @electron-forge/plugin-webpack

    This will be needed for Vue.js integration
    mook-as committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    4f1c628 View commit details
    Browse the repository at this point in the history
  14. forge.config.js: Add packaging script.

    This does all the fixups necessary to make the build work correctly.
    mook-as committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    ee3e440 View commit details
    Browse the repository at this point in the history
  15. .github/workflows: Add packaging workflow

    This is useful to have artifacts to test locally if necessary.
    mook-as committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    c771c09 View commit details
    Browse the repository at this point in the history