Skip to content

Commit

Permalink
updated ExManCmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Nov 22, 2021
1 parent d349ab2 commit c57f142
Show file tree
Hide file tree
Showing 69 changed files with 7,320 additions and 12,721 deletions.
12 changes: 12 additions & 0 deletions .bumpversion.cfg
@@ -0,0 +1,12 @@
[bumpversion]
current_version = 1.7.7
commit = True
tag = True

[bumpversion:file:package.json]
search = "version": "{current_version}"
replace = "version": "{new_version}"

[bumpversion:file:app/package.json]
search = "version": "{current_version}"
replace = "version": "{new_version}"
64 changes: 64 additions & 0 deletions .eslintrc.yml
@@ -0,0 +1,64 @@
settings:
import/resolver: webpack
extends: standard
env:
browser: true
commonjs: true
rules:
no-duplicate-imports: error
import/no-duplicates: 0
array-bracket-spacing:
- error
- never
block-scoped-var: error
brace-style:
- error
- 1tbs
computed-property-spacing:
- error
- never
comma-dangle:
- error
- arrays: always-multiline
objects: always-multiline
imports: always-multiline
exports: always-multiline
functions: only-multiline
curly: error
eol-last: error
eqeqeq:
- error
- smart
linebreak-style:
- error
- unix
max-depth:
- 1
- 5
max-statements:
- 1
- 80
no-multiple-empty-lines: error
no-mixed-spaces-and-tabs: error
no-trailing-spaces: error
no-unused-vars:
- error
- vars: all
args: after-used
argsIgnorePattern: ^_
varsIgnorePattern: ^_+$
no-undef: error
no-use-before-define:
- error
- nofunc
object-curly-spacing:
- error
- always
quote-props:
- warn
- as-needed
- keywords: true
numbers: true
strict:
- error
multiline-ternary: off
18 changes: 18 additions & 0 deletions .github/stale.yml
@@ -0,0 +1,18 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 180
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 90
# Issues with these labels will never be considered stale
exemptLabels:
- "T: Enhancement"
- "S: Confirmed"
# Label to use when marking an issue as stale
staleLabel: "S: Stale"
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed in two weeks unless you comment.
Thank you for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
111 changes: 111 additions & 0 deletions .github/workflows/build.yml
@@ -0,0 +1,111 @@
name: Package-Build
on: [push, pull_request]
jobs:
Lint:
runs-on: macos-11.0

steps:
- name: Checkout
uses: actions/checkout@v2.3.4
with:
fetch-depth: 0

- name: Installing Node
uses: actions/setup-node@v2.4.0
with:
node-version: 14

- name: Install deps
run: |
npm i -g yarn@1.19.1
yarn
- name: Lint
run: yarn lint

macOS-Build:
runs-on: macos-11.0
needs: Lint
strategy:
matrix:
include:
- arch: x64
# - arch: arm64

steps:
- name: Checkout
uses: actions/checkout@v2.3.4
with:
fetch-depth: 0

- name: Installing Node
uses: actions/setup-node@v2.4.0
with:
node-version: 14

- name: Install deps
run: |
sudo npm i -g yarn@1.22.1
yarn
- name: Build
run: yarn pack:mac-${{matrix.arch}}
env:
ARCH: ${{matrix.arch}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CSC_LINK: ${{ secrets.CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
APPSTORE_USERNAME: ${{ secrets.APPSTORE_USERNAME }}
APPSTORE_PASSWORD: ${{ secrets.APPSTORE_PASSWORD }}
USE_HARD_LINKS: false

- name: Package artifacts
run: |
mkdir artifact-dmg
mv dist/*.dmg artifact-dmg/
- uses: actions/upload-artifact@master
name: Upload DMG
with:
name: macOS .dmg (${{matrix.arch}})
path: artifact-dmg

Windows-Build:
runs-on: windows-2016
needs: Lint

steps:
- name: Checkout
uses: actions/checkout@v2.3.4
with:
fetch-depth: 0

- name: Installing Node
uses: actions/setup-node@v2.4.0
with:
node-version: 14

- name: Build
shell: powershell
run: |
npm i -g yarn@1.19.1
yarn
- name: Build
run: yarn pack:win
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WIN_CSC_LINK: ${{ secrets.WIN_CSC_LINK }}
WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }}
# DEBUG: electron-builder,electron-builder:*

- name: Package artifacts
run: |
mkdir artifact-setup
mv dist/*.exe artifact-setup/
- uses: actions/upload-artifact@master
name: Upload installer
with:
name: Windows installer
path: artifact-setup
70 changes: 70 additions & 0 deletions .github/workflows/codeql-analysis.yml
@@ -0,0 +1,70 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '26 7 * * 4'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,19 @@
---
name: "tagged-release"

on:
push:
tags:
- "v*"

jobs:
tagged-release:
name: "Tagged Release"
runs-on: "ubuntu-latest"

steps:
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
draft: true
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,3 +2,4 @@
release
node_modules
_site
dist
32 changes: 10 additions & 22 deletions README.md
@@ -1,44 +1,32 @@
# ZXPInstaller

ZXPInstaller is a simple cross platform (OS X and Windows) installer for third party Adobe extensions (`.zxp` files). It serves as a replacement for the Extension Manager which no longer is not supported after CC 2014. It provides a drag-and-drop GUI for installation, and [a website](http://zxpinstaller.com/) to which extension developers can point users to download the installer.
ZXPInstaller is a simple cross platform (OS X and Windows) installer for third party Adobe extensions (`.zxp` files). It serves as a replacement for the Extension Manager which no longer is not supported after CC 2014. It provides a drag-and-drop GUI for installation, and [a website](https://zxpinstaller.com/) to which extension developers can point users to download the installer.

# How it works

ZXPInstaller uses Electron (http://electron.atom.io) to create a cross platform HTML/node.js app. The app spawns a child process for the Adobe Extension Manager command line utility to install the ZXP.
ZXPInstaller uses Electron (https://electron.org) to create a cross platform HTML/node.js app. The app spawns a child process for the Adobe Extension Manager command line utility to install the ZXP.

# Setup (OS X)
# Setup

1. Install [Node.js](https://nodejs.org).

1. Install the dependencies and start the app.
2. Install the dependencies and start the app.

```
npm install
npm run dev
yarn
yarn dev
```

# Compiling (OS X)

1. Install [Homebrew](http://brew.sh/).

1. Install `wine` and `makensis` for `electron-builder` (needed to build the Windows installer).

```
brew install wine makensis
```
# Compiling

1. Run the build script

```
npm run pack
yarn pack:mac-x64
```

1. You will find the compiled binaries in the `release` directory.

# Help needed

Windows is supported, however a maintainer is still needed for the Windows portion of the code.
2. You will find the compiled binaries in the `dist` directory.

# Credits

ZXPInstaller was originally created by [**@maxoos**](https://github.com/maxoos).
ZXPInstaller was originally created by [**@maxoos**](https://github.com/maxoos) and maintained by [Cameron McEfee](https://github.com/cameronmcefee) and [GuideGuide](https://github.com/guideguide).
Binary file removed app/bin/OSX/Contents/Frameworks/ExtLib.dylib
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit c57f142

Please sign in to comment.