Giter Site home page Giter Site logo

elonzh / office-addin-sideloader Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 178 KB

A handy tool to manage your office addins locally, you can use it for addin development or deploy your addins for your clients out of AppSource.

License: MIT License

Jinja 7.75% Python 92.25%
office office-addin windows

office-addin-sideloader's Introduction

Office Addin Sideloader

PyPI GitHub

A handy tool to manage your office addins locally, you can use it for addin development or deploy your addins for your clients out of AppSource.

NOTE: currently only support windows.

Features

  • Add or remove Office Add-in locally.
  • Support local or url manifest source.
  • Debug sideload status and list manifest info.
  • Single binary without any dependency.
  • Use it as a library.
  • Generate add-in installer/uninstaller with sentry support by single command.
  • Support fixing add-in APP ERROR and clearing cache.

Installation

Pre-built releases

If you just use the command line and don't have a python environment, download pre-built binary from GitHub Releases.

Pypi

> pip install oaloader

Quick Start

> ./oaloader.exe --help
Usage:  [OPTIONS] COMMAND [ARGS]...

  Manage your office addins locally.

Options:
  --version         Show the version and exit.
  -l, --level TEXT  The log level  [default: info]
  --help            Show this message and exit.

Commands:
  add     Register catalog and add manifests, manifests can be file paths
          or...

  fix     Try fixing `APP ERROR` when starting up add-ins.
  info    Debug sideload status.
  remove  Remove manifest from catalog and manifest can be a file path or...

Build an Addin installer

  1. Install Poetry.
  2. Run poetry install to prepare environment.
  3. Checkout Nuitka Requirements and install a C compiler.
  4. Run poetry run invoke installer -m <YOUR-ADDIN-MANIFEST-URL> to build your own installer.

If your want customize the installer, just edit installer.jinja2 or write your own installer with oaloader module.

Build an Addin uninstaller

Just using invoke uninstaller task like installer above.

FAQ

How it works?

https://docs.microsoft.com/en-us/office/dev/add-ins/testing/create-a-network-shared-folder-catalog-for-task-pane-and-content-add-ins

Get error like ImportError: DLL load failed while importing win32xxx when import pywin32 module.

Try this solution:

  1. Open a terminal as Administrator
  2. Get your virtualenv path by running poetry env info
  3. Run poetry run python <virtualenv path>/.venv/Scripts/pywin32_postinstall.py -install

see mhammond/pywin32#1431 (comment) for more details.

office-addin-sideloader's People

Contributors

dependabot[bot] avatar elonzh avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.