Compare commits

...

46 Commits

Author SHA1 Message Date
J. Fronny
f6fdd0e8a2 Merge branch 'renovate/epplus-5.x' into 'master'
Update dependency EPPlus to v5.4.2

See merge request JFronny/GradeCalc!26
2020-11-19 15:13:40 +00:00
Renovate Bot
3250cdba1f
Update dependency EPPlus to v5.4.2 2020-11-19 14:33:03 +00:00
J. Fronny
1042580c58 Merge branch 'renovate/epplus-5.x' into 'master'
Update dependency EPPlus to v5.4.1

See merge request JFronny/GradeCalc!25
2020-11-05 14:51:42 +00:00
Renovate Bot
2cc25ef521
Update dependency EPPlus to v5.4.1 2020-11-05 14:45:59 +00:00
J. Fronny
e78a815305 Merge branch 'renovate/epplus-5.x' into 'master'
Update dependency EPPlus to v5.4.0

See merge request JFronny/GradeCalc!24
2020-10-08 16:15:33 +00:00
Renovate Bot
da5c169839
Update dependency EPPlus to v5.4.0 2020-10-08 14:26:34 +00:00
J. Fronny
c6d8a07b6a Merge branch 'renovate/epplus-5.x' into 'master'
Update dependency EPPlus to v5.3.2

See merge request JFronny/GradeCalc!23
2020-09-14 12:20:24 +00:00
Renovate Bot
6bd8910f6d
Update dependency EPPlus to v5.3.2 2020-09-14 06:33:13 +00:00
J. Fronny
d3d8182848 Merge branch 'renovate/epplus-5.x' into 'master'
Update dependency EPPlus to v5.3.1

See merge request JFronny/GradeCalc!22
2020-09-07 09:45:08 +00:00
Renovate Bot
ee5623a210
Update dependency EPPlus to v5.3.1 2020-09-07 08:34:37 +00:00
J. Fronny
a9d72cb909 Update .gitlab-ci.yml 2020-08-31 19:18:03 +00:00
J. Fronny
86f069118b Update .gitlab-ci.yml 2020-08-31 19:01:58 +00:00
J. Fronny
8da8a428e8 Merge branch 'renovate/epplus-5.x' into 'master'
Update dependency EPPlus to v5.3.0

See merge request JFronny/GradeCalc!21
2020-08-22 16:31:21 +00:00
Renovate Bot
f742471132
Update dependency EPPlus to v5.3.0 2020-08-20 07:53:16 +00:00
J. Fronny
91e0034f1d Update .gitlab-ci.yml 2020-07-31 13:34:31 +00:00
J. Fronny
f79f1bd61c Merge branch 'renovate/epplus-5.x' into 'master'
Update dependency EPPlus to v5.2.1

See merge request JFronny/GradeCalc!20
2020-07-22 16:39:39 +00:00
Renovate Bot
a4f1764fba
Update dependency EPPlus to v5.2.1 2020-07-22 16:15:31 +00:00
J. Fronny
394928d288 Add LICENSE 2020-06-27 16:25:31 +00:00
J. Fronny
98c2cad785 Merge branch 'renovate/epplus-5.x' into 'master'
Update dependency EPPlus to v5.2.0

See merge request JFronny/GradeCalc!19
2020-06-25 17:31:41 +00:00
Renovate Bot
22449ba6ba
Update dependency EPPlus to v5.2.0 2020-06-25 16:19:32 +00:00
J. Fronny
96aef7cfa7 Merge branch 'renovate/configure' into 'master'
Configure Renovate

See merge request JFronny/GradeCalc!18
2020-06-25 16:19:20 +00:00
Renovate Bot
0048517b49
Add renovate.json 2020-06-23 08:48:08 +00:00
J. Fronny
8b667df061 Update .gitlab-ci.yml 2020-06-18 14:44:36 +00:00
J. Fronny
7464b9b3ea Update README.md 2020-06-18 14:32:15 +00:00
J. Fronny
66623db78c Delete main.yml 2020-06-18 14:17:57 +00:00
J. Fronny
b4976e8fdc Update .gitlab-ci.yml 2020-06-18 14:10:55 +00:00
J. Fronny
b01f22903f Update .gitlab-ci.yml 2020-06-18 14:04:55 +00:00
J. Fronny
717b85992b Attempt to fix 2020-06-18 13:56:58 +00:00
J. Fronny
6bd4592a71 Maybe its done now? 2020-06-18 13:36:30 +00:00
J. Fronny
3fb207232b Update .gitlab-ci.yml 2020-06-18 13:17:29 +00:00
J. Fronny
adc41cf7a5 Update .gitlab-ci.yml 2020-06-18 13:09:50 +00:00
J. Fronny
ac105a8822 Update .gitlab-ci.yml 2020-06-18 13:08:58 +00:00
J. Fronny
e565b4c95b Update .gitlab-ci.yml 2020-06-18 12:35:17 +00:00
J. Fronny
ab66f06b68 Revert "Update main.yml"
This reverts commit 64683d5da3
2020-06-18 12:34:09 +00:00
J. Fronny
64683d5da3 Update main.yml 2020-06-18 12:31:46 +00:00
J. Fronny
6afb9b4130 But does it build? 2020-06-18 12:24:33 +00:00
dependabot-preview[bot]
31e5e0de76 Bump CC-Functions.W32 from 1.1.7450.31626 to 1.1.7468.32091
Bumps [CC-Functions.W32](https://github.com/JFronny/CC-Functions) from 1.1.7450.31626 to 1.1.7468.32091.
- [Release notes](https://github.com/JFronny/CC-Functions/releases)
- [Commits](https://github.com/JFronny/CC-Functions/compare/1.1.7450.31626...1.1.7468.32091)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-15 06:53:30 +02:00
dependabot-preview[bot]
8c8973511b Bump CC-Functions.W32 from 1.1.7448.24408 to 1.1.7450.31626
Bumps [CC-Functions.W32](https://github.com/JFronny/CC-Functions) from 1.1.7448.24408 to 1.1.7450.31626.
- [Release notes](https://github.com/JFronny/CC-Functions/releases)
- [Commits](https://github.com/JFronny/CC-Functions/compare/1.1.7448.24408...1.1.7450.31626)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-26 08:43:03 +02:00
dependabot-preview[bot]
3d1ce4167d Bump CC-Functions.W32 from 1.1.7409.23118 to 1.1.7448.24408
Bumps [CC-Functions.W32](https://github.com/JFronny/CC-Functions) from 1.1.7409.23118 to 1.1.7448.24408.
- [Release notes](https://github.com/JFronny/CC-Functions/releases)
- [Commits](https://github.com/JFronny/CC-Functions/compare/1.1.7409.23118...1.1.7448.24408)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-24 14:18:54 +02:00
dependabot-preview[bot]
00cfcc44a3 Bump EPPlus from 5.1.1 to 5.1.2
Bumps [EPPlus](https://github.com/EPPlusSoftware/EPPlus) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/EPPlusSoftware/EPPlus/releases)
- [Commits](https://github.com/EPPlusSoftware/EPPlus/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-14 15:58:43 +02:00
dependabot-preview[bot]
cae3a9e9c9 Bump EPPlus from 5.1.0 to 5.1.1
Bumps [EPPlus](https://github.com/EPPlusSoftware/EPPlus) from 5.1.0 to 5.1.1.
- [Release notes](https://github.com/EPPlusSoftware/EPPlus/releases)
- [Commits](https://github.com/EPPlusSoftware/EPPlus/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-28 13:32:36 +02:00
dependabot-preview[bot]
8cf407296b Bump CC-Functions.W32 from 1.1.7399.26972 to 1.1.7409.23118
Bumps [CC-Functions.W32](https://github.com/JFronny/CC-Functions) from 1.1.7399.26972 to 1.1.7409.23118.
- [Release notes](https://github.com/JFronny/CC-Functions/releases)
- [Commits](https://github.com/JFronny/CC-Functions/compare/1.1.7399.26972...1.1.7409.23118)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-17 10:28:13 +02:00
dependabot-preview[bot]
c9caa87105 Bump EPPlus from 5.0.4 to 5.1.0
Bumps [EPPlus](https://github.com/EPPlusSoftware/EPPlus) from 5.0.4 to 5.1.0.
- [Release notes](https://github.com/EPPlusSoftware/EPPlus/releases)
- [Commits](https://github.com/EPPlusSoftware/EPPlus/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-08 12:26:16 +02:00
CreepyCrafter24
3cf6542505 Fix deps 2020-04-07 17:28:28 +02:00
dependabot-preview[bot]
62eeab6bf2 Bump CC-Functions.Misc from 1.1.7397.24614 to 1.1.7399.26972
Bumps [CC-Functions.Misc](https://github.com/JFronny/CC-Functions) from 1.1.7397.24614 to 1.1.7399.26972.
- [Release notes](https://github.com/JFronny/CC-Functions/releases)
- [Commits](https://github.com/JFronny/CC-Functions/compare/1.1.7397.24614...1.1.7399.26972)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-06 18:46:56 +02:00
dependabot-preview[bot]
86be433d82 Bump CC-Functions.Misc from 1.1.7396.23808 to 1.1.7397.24614
Bumps [CC-Functions.Misc](https://github.com/JFronny/CC-Functions) from 1.1.7396.23808 to 1.1.7397.24614.
- [Release notes](https://github.com/JFronny/CC-Functions/releases)
- [Commits](https://github.com/JFronny/CC-Functions/compare/1.1.7396.23808...1.1.7397.24614)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-04 15:46:11 +02:00
7 changed files with 78 additions and 75 deletions

View File

@ -1,71 +0,0 @@
name: CD
on:
push:
branches:
- master
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Build
id: base_init
run: |
$(new-object System.Net.WebClient).DownloadFile("https://www.github.com/JFronny/UpTool2/releases/latest/download/Tools.zip", "$($(pwd).Path)\Tools.zip")
& "C:\Program Files\7-Zip\7z.exe" x .\Tools.zip
rm Tools.zip
rm Install.bat
rm Remove.bat
dotnet build --verbosity:m -p:Configuration=Release
cp *\bin\Release\netcoreapp3.1\package.zip .
$file = Get-Item $(Resolve-Path *\bin\Release\netcoreapp3.1\*.exe).Path
$asm = $([Reflection.Assembly]::LoadFile($file.DirectoryName + "\" + $file.BaseName + ".dll"))
$asmver = $asm.GetName().Version.ToString()
echo "::set-output name=vers::$asmver"
- name: Create Release
id: create_release
uses: actions/create-release@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.base_init.outputs.vers }}
release_name: Release ${{ steps.base_init.outputs.vers }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload_release_asset
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./package.zip
asset_name: package.zip
asset_content_type: application/zip
- name: Generate XML
run: |
$file = Get-Item $(Resolve-Path *\bin\Release\netcoreapp3.1\*.exe).Path
$asm = [Reflection.Assembly]::LoadFile($file.DirectoryName + "\" + $file.BaseName + ".dll")
[System.XML.XMLDocument]$xml=New-Object System.XML.XMLDocument
[System.XML.XMLElement]$app=$xml.CreateElement("app")
$xml.appendChild($app)
$app.appendChild($xml.CreateElement("Name")).InnerText = $asm.GetName().Name
$app.appendChild($xml.CreateElement("Description")).InnerText = "Calculate grades for students"
$app.appendChild($xml.CreateElement("Version")).InnerText = "${{ steps.base_init.outputs.vers }}"
$app.appendChild($xml.CreateElement("ID")).InnerText = "c8119098-ec7f-4fb3-8668-9e81915b112d"
$app.appendChild($xml.CreateElement("File")).InnerText = "${{ steps.upload_release_asset.outputs.browser_download_url }}"
$app.appendChild($xml.CreateElement("Hash")).InnerText = $(Get-FileHash .\package.zip).Hash
$app.appendChild($xml.CreateElement("MainFile")).InnerText = $file.Name
echo NULL > app.xml
$xml.save($(gi .\app.xml).Fullname)
- name: Upload XML
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./app.xml
asset_name: app.xml
asset_content_type: text/xml

48
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,48 @@
.shared_windows_runners:
tags:
- windows
image: mcr.microsoft.com/dotnet/core/sdk
uptool:
extends:
- .shared_windows_runners
stage: deploy
script: |
mkdir i
cd i
$(new-object System.Net.WebClient).DownloadFile("https://gitlab.com/JFronny/UpTool2/-/jobs/artifacts/master/raw/Installer-generic.zip?job=uptool", "$($(pwd).Path)\Install.zip")
& "C:\Program Files\7-Zip\7z.exe" x .\Install.zip
.\Installer.exe --basic i -p
cd ..
rm -R i
$Env:Path="$Env:Path;$Env:APPDATA\UpTool2\Install"
uptool --basic add-repo DevTools https://gitlab.com/JFronny/UpTool2/-/snippets/2010392/raw
uptool --basic update
uptool --basic install "UpTool2 package tools"
$Env:Path="$Env:Path;$Env:APPDATA\UpTool2\Apps\0e35d154-d0d3-45e0-b080-62f521263a44\app"
mkdir .\build
dotnet publish -o .\build -c Release
$file = Get-Item $(Resolve-Path .\build\*.exe).Path
pkgtool build --binDir build --mainBin $file --packageFile .\package.zip --noLogo
$asm = $([Reflection.Assembly]::LoadFile($file.DirectoryName + "\" + $file.BaseName + ".dll"))
$asmver = $asm.GetName().Version.ToString()
[System.XML.XMLDocument]$xml=New-Object System.XML.XMLDocument
[System.XML.XMLElement]$app=$xml.CreateElement("app")
$xml.appendChild($app)
$app.appendChild($xml.CreateElement("Name")).InnerText = $asm.GetName().Name
$app.appendChild($xml.CreateElement("Description")).InnerText = "Calculate grades for students"
$app.appendChild($xml.CreateElement("Version")).InnerText = $asmver
$app.appendChild($xml.CreateElement("ID")).InnerText = "c8119098-ec7f-4fb3-8668-9e81915b112d"
$app.appendChild($xml.CreateElement("File")).InnerText = $CI_PROJECT_URL + "/-/jobs/" + $CI_JOB_ID + "/artifacts/raw/package.zip"
$app.appendChild($xml.CreateElement("Hash")).InnerText = $(Get-FileHash .\package.zip).Hash
$app.appendChild($xml.CreateElement("MainFile")).InnerText = $file.Name
echo NULL > app.xml
$xml.save($(gi .\app.xml).Fullname)
artifacts:
paths:
- package.zip
- app.xml
only:
- master

View File

@ -10,8 +10,8 @@
<PostBuildEvent>if exist "$(SolutionDir)Data\pkgtool.exe" ($(SolutionDir)Data\pkgtool.exe build --noLogo --binDir .) else if exist "%appdata%\UpTool2\Apps\0e35d154-d0d3-45e0-b080-62f521263a44\app\pkgtool.exe" ("%appdata%\UpTool2\Apps\0e35d154-d0d3-45e0-b080-62f521263a44\app\pkgtool.exe" build --noLogo --binDir .) else echo Cound not find Package build tools, skipping</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CC-Functions.Misc" Version="1.1.7396.23808" />
<PackageReference Include="EPPlus" Version="5.0.4" />
<PackageReference Include="CC-Functions.W32" Version="1.1.7468.32091" />
<PackageReference Include="EPPlus" Version="5.4.2" />
<PackageReference Include="NCalc2" Version="2.1.0" />
</ItemGroup>
</Project>

View File

@ -6,7 +6,7 @@ using System.Globalization;
using System.IO;
using System.Linq;
using System.Windows.Forms;
using CC_Functions.Misc;
using CC_Functions.W32.Forms;
using NCalc2;
using OfficeOpenXml;
using OfficeOpenXml.Style;

21
LICENSE Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2020 J. Fronny
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,2 +1,2 @@
# GradeCalc
Simple app to calculate student grades [![UpTool2](https://img.shields.io/github/v/tag/JFronny/GradeCalc?color=informational&label=UpTool2)](https://jfronny.github.io/home/uptool)
Simple app to calculate student grades [![UpTool2](https://img.shields.io/badge/Get%20it-on%20UpTool2-blue)](https://jfronny.gitlab.io/home/uptool)

5
renovate.json Normal file
View File

@ -0,0 +1,5 @@
{
"extends": [
"config:base"
]
}