-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
22 changed files
with
554 additions
and
4,432 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,2 @@ | ||
start: | ||
make start-electron & make start-parcel | ||
|
||
start-electron: | ||
yarn run electron-forge start | ||
|
||
start-parcel: | ||
rm -rf dist-parcel | ||
yarn run parcel src/index.html | ||
|
||
start-worker: | ||
npx wrangler dev worker/index.js | ||
|
||
start-worker-stats: | ||
npx wrangler dev worker/stats.js | ||
|
||
patch: | ||
yarn version --patch | ||
make magic | ||
|
||
minor: | ||
yarn version --minor | ||
make magic | ||
|
||
magic: | ||
make build-parcel-for-electron | ||
make magic-electron | ||
|
||
build-parcel-for-electron: | ||
rm -rf dist-parcel && yarn run parcel build src/index.html --public-url . --dist-dir dist-parcel && cp src/images/* dist-parcel/images/ && cp src/favicon.ico dist-parcel | ||
|
||
build-parcel-for-web: | ||
rm -rf dist-parcel && yarn run parcel build src/index.html --public-url / --dist-dir dist-parcel && cp src/images/* dist-parcel/images/ && cp src/favicon.ico dist-parcel | ||
|
||
magic-electron: | ||
make build-electron | ||
make upload | ||
|
||
build-electron: | ||
rm -rf dist | ||
rm -rf out | ||
make icons | ||
yarn run electron-builder | ||
|
||
upload: | ||
xcrun altool --validate-app -f ${shell find dist/mas-universal -name "*.pkg" | head -n 1} -u ${APPLE_ID} -p ${APPLE_PASSWORD} --type macos | ||
xcrun altool --upload-app -f ${shell find dist/mas-universal -name "*.pkg" | head -n 1} -u ${APPLE_ID} -p ${APPLE_PASSWORD} --type macos | ||
|
||
icons: | ||
cp build/512x512@2x.png build/icon.png | ||
cp build/Artwork.png src/favicon.png | ||
|
||
# local | ||
package-electron: | ||
rm -rf dist | ||
rm -rf out | ||
yarn run electron-forge package | ||
|
||
# just to create the favicon.ico | ||
icon: | ||
convert -resize x16 -gravity center -crop 16x16+0+0 src/images/logo.png -flatten -colors 256 -background transparent src/favicon.ico | ||
convert src/images/logo.png -resize 512x512 src/images/logo-512x512.png | ||
convert src/images/logo.png -resize 192x192 src/images/logo-192x192.png | ||
convert src/images/logo.png -resize 256x256 src/images/logo-256x256.png | ||
convert src/images/logo.png -resize 384x384 src/images/logo-384x384.png | ||
|
||
|
||
|
||
#unused | ||
# yarn run electron-builder --dir | ||
npm start |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,20 @@ | ||
{ | ||
"name": "unixtime", | ||
"version": "4.0.7", | ||
"main": "electron/main.js", | ||
"targets": { | ||
"main": false | ||
}, | ||
"version": "5.0.0", | ||
"repository": "git@github.com:klausbreyer/unixtime.app.git", | ||
"author": "Klaus Breyer <kb@v01.io>", | ||
"license": "UNLICENSED", | ||
"devDependencies": { | ||
"@electron-forge/cli": "^6.0.0-beta.65", | ||
"@parcel/packager-raw-url": "2.7.0", | ||
"@parcel/transformer-sass": "2.7.0", | ||
"@parcel/transformer-webmanifest": "2.7.0", | ||
"electron": "^20.0.2", | ||
"electron-builder": "^23.3.3", | ||
"parcel": "^2.7.0", | ||
"@parcel/packager-raw-url": "2.8.3", | ||
"@parcel/transformer-sass": "2.8.3", | ||
"@parcel/transformer-webmanifest": "2.8.3", | ||
"parcel": "^2.8.3", | ||
"posthtml-doctype": "^1.1.1", | ||
"posthtml-include": "^1.7.4" | ||
}, | ||
"scripts": {}, | ||
"dependencies": { | ||
"electron-squirrel-startup": "^1.0.0" | ||
"scripts": { | ||
"start": "yarn run parcel src/index.html", | ||
"build": " yarn run parcel build src/index.html --public-url / --dist-dir dist && cp src/images/* dist/images/ && cp src/favicon.ico dist/" | ||
}, | ||
"config": {}, | ||
"build": { | ||
"appId": "app.unixtime", | ||
"mac": { | ||
"target": [ | ||
{ | ||
"target": "mas", | ||
"arch": "universal" | ||
} | ||
], | ||
"mergeASARs": false, | ||
"category": "public.app-category.developer-tools" | ||
}, | ||
"mas": { | ||
"type": "distribution", | ||
"provisioningProfile": "embedded.provisionprofile", | ||
"entitlements": "build/entitlements.mas.plist", | ||
"entitlementsInherit": "build/entitlements.mas.inherit.plist" | ||
} | ||
} | ||
"dependencies": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.