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
...@@ -2,26 +2,38 @@ ...@@ -2,26 +2,38 @@
cd src cd src
$ideaBuild = "../classes/artifacts/projlab_jar"
$jarfile = "$ideaBuild/projlab.jar"
if (-not(Test-Path -Path "$ideaBuild" -PathType Container)) {
$jarfile = "projlab.jar" $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" | Get-ChildItem -Recurse "../lib/linux" |
Foreach-Object { ForEach-Object {
$f = $_.FullName $f = $_.FullName
$extn = [IO.Path]::GetExtension($f) $extn = [IO.Path]::GetExtension($f)
if ($extn -eq ".java") { if ($extn -eq ".jar") {
if (Test-Path -Path "$f" -PathType Leaf) { if (Test-Path -Path "$f" -PathType Leaf) {
echo "Building $f" cp "$f" "${f}.zip"
javac -encoding utf8 "$f" 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 { Foreach-Object {
$f = $_.FullName $f = $_.FullName
$extn = [IO.Path]::GetExtension($f) $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