Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
haarli committed Jun 29, 2023
0 parents commit 322786c
Show file tree
Hide file tree
Showing 2 changed files with 118 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: build package release
on:
workflow_dispatch :
inputs:
release:
description: Create a github release
type: boolean
required: false
default: false


release:
runs-on: ubuntu-latest
needs: [ build_on_linux, build_on_mac_with_codesign_notarization, build_on_win ]
if: ${{ github.event.inputs.release == 'true' }}
steps:
- name: checkout
uses: actions/checkout@v3

- name: get-package-version
id: package-version
uses: beaconbrigade/[email protected]

- name: download artifacts
uses: actions/download-artifact@v3

- name: release
uses: softprops/action-gh-release@v1
with:
name: v${{ steps.package-version.outputs.version }}
tag_name: v${{ steps.package-version.outputs.version }}
draft: true
prerelease: true


83 changes: 83 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"name": "upverse",
"version": "1.0.0",
"author": {
"name": "Max Planck Digital Library",
"email": "[email protected]"
},
"description": "Direct file upload to research data repository",
"license": "MIT",
"main": "dist/main/main.js",
"scripts": {
"postinstall": "electron-builder install-app-deps",
"build": "tsc",
"start": "rm -rf ./dist && npm run build && electron ./dist/main/main.js",
"deploy": "rm -rf ./dist && rm -rf ./out && npm run build && electron-builder --publish=never",
"watch": "tsc -w",
"lint": "eslint -c .eslintrc --ext .ts ./src"
},
"build" : {
"appId" : "de.mpg.mpdl.edmond.upverse",
"artifactName" : "${name}-${version}-${os}-${arch}.${ext}",
"icon":"assets/favicons/favicon",
"directories": {
"output": "out"
},
"files": [
"!.github",
"!.idea"
],
"mac" : {
"target" : {
"target" : "zip",
"arch" : ["x64", "arm64"]
},
"hardenedRuntime": true
},
"win" : {
"target" : [
{
"target" : "nsis",
"arch" : ["x64"]
},
{
"target" : "zip",
"arch" : ["x64"]
}
]
},
"linux" : {
"icon":"assets/favicons/favicon.icns",
"target": ["deb","tar.gz"],
"category": "Utility"
}
},
"repository": "https://github.com/MPDL/upverse",
"keywords": [
"edmond",
"research",
"data",
"repository",
"dataverse",
"upload"
],
"devDependencies": {
"electron-builder": "latest",
"@types/bootstrap": "^5.1.11",
"@types/mime-types": "^2.1.1",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"electron": "^24.3.0",
"electron-prebuilt-compile": "8.2.0",
"eslint": "^7.32.0",
"typescript": "^4.5.5"
},
"dependencies": {
"bootstrap": "^5.1.3",
"bootstrap-icons": "^1.8.1",
"form-data": "^4.0.0",
"http": "^0.0.1-security",
"mime-types": "^2.1.35",
"rxjs": "~7.8.0"
}
}

0 comments on commit 322786c

Please sign in to comment.