Skip to content
Snippets Groups Projects
Verified Commit 71aac91e authored by Tóth Miklós Tibor's avatar Tóth Miklós Tibor :shrug:
Browse files

i still hate windows

parent 25097034
Branches
Tags
No related merge requests found
Pipeline #7951 failed
......@@ -2,26 +2,38 @@
cd src
$ideaBuild = "../classes/artifacts/projlab_jar"
$jarfile = "$ideaBuild/projlab.jar"
if (-not(Test-Path -Path "$ideaBuild" -PathType Container)) {
$jarfile = "projlab.jar"
mv META-INF META-INF.bak
Get-ChildItem -Recurse "../lib/windows" |
ForEach-Object {
$f = $_.FullName
$extn = [IO.Path]::GetExtension($f)
if ($extn -eq ".jar") {
if (Test-Path -Path "$f" -PathType Leaf) {
cp "$f" "${f}.zip"
Expand-Archive -Path "${f}.zip" -Force -DestinationPath .
}
}
}
Get-ChildItem "projlab" |
Foreach-Object {
Get-ChildItem -Recurse "../lib/linux" |
ForEach-Object {
$f = $_.FullName
$extn = [IO.Path]::GetExtension($f)
if ($extn -eq ".java") {
if ($extn -eq ".jar") {
if (Test-Path -Path "$f" -PathType Leaf) {
echo "Building $f"
javac -encoding utf8 "$f"
cp "$f" "${f}.zip"
Expand-Archive -Path "${f}.zip" -Force -DestinationPath .
}
}
}
Get-ChildItem "projlab/commands" |
cp ../lib/windows/*.dll ./
cp ../lib/linux/*.so ./
Get-ChildItem -Recurse "projlab" |
Foreach-Object {
$f = $_.FullName
$extn = [IO.Path]::GetExtension($f)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment