Skip to content

Commit

Permalink
Merge branch 'release/v0.7.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaaromy Zierse committed Jun 13, 2018
2 parents 46df643 + be935c5 commit c3448e7
Show file tree
Hide file tree
Showing 5 changed files with 311 additions and 16 deletions.
112 changes: 102 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"name": "aws-ssm-parameter-manager",
"productName": "Secret AWSome",
"version": "0.7.5",
"version": "0.7.7",
"description": "Easily manage AWS Systems Manager Parameter Store items across regions",
"main": "src/es6-init.js",
"private": true,
"owner": "observian",
"displayName": "Secret-AWSome",
"scripts": {
"start": "electron-forge start",
Expand Down Expand Up @@ -44,6 +46,7 @@
"query-string": "^6.1.0"
},
"devDependencies": {
"@octokit/rest": "^15.8.2",
"babel-plugin-transform-async-to-generator": "^6.24.1",
"babel-plugin-transform-es2015-classes": "^6.24.1",
"babel-preset-env": "^1.7.0",
Expand All @@ -57,6 +60,9 @@
"eslint-plugin-import": "^2.12.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.8.2",
"fs-extra": "^6.0.1",
"klaw-sync": "^4.0.0",
"minimist": "^1.2.0",
"transpile": "^2.6.2"
},
"config": {
Expand Down Expand Up @@ -86,7 +92,8 @@
"osxSign": true
},
"electronWinstallerConfig": {
"name": "Secret-AWSome"
"name": "Secret-AWSome",
"setupExe": "win-Setup.exe"
},
"electronInstallerDebian": {
"name": "Secret-AWSome",
Expand Down
41 changes: 37 additions & 4 deletions scripts/rename.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,37 @@
NAME=$(node -p "require('./package.json').displayName")
PLATFORM="linux"
VERSION=$(node -p "require('./package.json').version")
for file in out/make/*.*; do mv "$file" "out/make/$NAME-$PLATFORM-$VERSION.${file##*.}"; done
#!/bin/bash

# A POSIX variable
OPTIND=1 # Reset in case getopts has been used previously in the shell.
BASEDIR="." # Path to source code base directory (ie. path containing package.json)
PLATFORM=""

while getopts ":p:d:" opt; do
case $opt in
p)
PLATFORM="$OPTARG"
;;
d)
BASEDIR="$OPTARG"
;;
\?)
echo "Invalid option: -$OPTARG" >&2
exit 1
;;
:)
echo "Option -$OPTARG requires an argument." >&2
exit 1
;;
esac
done

NAME=$(node -p "require('$BASEDIR/package.json').displayName")
VERSION=$(node -p "require('$BASEDIR/package.json').version")
MAKEDIR="$BASEDIR/out/make"
FINALDIR="$MAKEDIR/final"

mkdir -p "$FINALDIR"

for file in $(find "$MAKEDIR" -type f -name "*.*" ! -name ".DS*"); do cp "${file}" "$FINALDIR/$NAME-$PLATFORM-$VERSION.${file##*.}"; done

echo "Files Created"
for file in $(find "$FINALDIR" -type f); do echo "${file}"; done
Loading

0 comments on commit c3448e7

Please sign in to comment.