Feature/python build #25
20
biggit.ps1
20
biggit.ps1
@ -1,20 +0,0 @@
|
||||
|
||||
$objects = git verify-pack -v .git/objects/pack/pack-aba4bfc55979194c86dbd466c86e57d8199ae7ad.idx | Select-String -Pattern 'chain' -NotMatch | ForEach-Object {$_.Line} | Sort-Object -Property @{Expression={$_.Split(" ")[2]}; Ascending=$false} | Select-Object -First 50
|
||||
|
||||
Write-Output "All sizes are in kB. The pack column is the size of the object, compressed, inside the pack file."
|
||||
|
||||
$output = "size,pack,SHA,location"
|
||||
foreach ($y in $objects) {
|
||||
# extract the size in bytes
|
||||
$size = [int]($y.Split(" ")[4]/1024)
|
||||
# extract the compressed size in bytes
|
||||
$compressedSize = [int]($y.Split(" ")[5]/1024)
|
||||
# extract the SHA
|
||||
$sha = $y.Split(" ")[0]
|
||||
# find the objects location in the repository tree
|
||||
$other = git rev-list --all --objects | Select-String $sha
|
||||
$output += "`n${size},${compressedSize},${other}"
|
||||
}
|
||||
|
||||
Write-Output $output | ConvertFrom-Csv -Delimiter "," | Format-Table
|
||||
Pause
|
27
biggit.sh
27
biggit.sh
@ -1,27 +0,0 @@
|
||||
#!/bin/bash
|
||||
#set -x
|
||||
IFS=$'\n';
|
||||
|
||||
# 默认值是 10个 可以一次性展示更多 就修改第15行代码 | head -n 30 或者更多
|
||||
objects=`git verify-pack -v .git/objects/pack/pack-aba4bfc55979194c86dbd466c86e57d8199ae7ad.idx | grep -v chain | sort -k3nr | head -n 50`
|
||||
|
||||
echo "All sizes are in kB. The pack column is the size of the object, compressed, inside the pack file."
|
||||
|
||||
output="size,pack,SHA,location"
|
||||
for y in $objects
|
||||
do
|
||||
# extract the size in bytes
|
||||
size=$((`echo $y | cut -f 5 -d ' '`/1024))
|
||||
# extract the compressed size in bytes
|
||||
compressedSize=$((`echo $y | cut -f 6 -d ' '`/1024))
|
||||
# extract the SHA
|
||||
sha=`echo $y | cut -f 1 -d ' '`
|
||||
# find the objects location in the repository tree
|
||||
other=`git rev-list --all --objects | grep $sha`
|
||||
#lineBreak=`echo -e "\n"`
|
||||
output="${output}\n${size},${compressedSize},${other}"
|
||||
done
|
||||
|
||||
echo -e $output | column -t -s ', '
|
||||
|
||||
pause
|
13
nuitka_build.py
Normal file
13
nuitka_build.py
Normal file
@ -0,0 +1,13 @@
|
||||
# -------------------------------
|
||||
# Difficult Rocket
|
||||
# Copyright © 2020-2023 by shenjackyuanjie 3695888@qq.com
|
||||
# All rights reserved
|
||||
# -------------------------------
|
||||
|
||||
import subprocess
|
||||
from libs.utils import nuitka
|
||||
|
||||
if __name__ == '__main__':
|
||||
compiler = nuitka.Status()
|
||||
|
||||
|
@ -1,6 +0,0 @@
|
||||
allPython.ps1 -m compileall 'libs\'
|
||||
allPython.ps1 -m compileall 'Difficult_Rocket\'
|
||||
allPython.ps1 -O -m compileall 'libs\'
|
||||
allPython.ps1 -O -m compileall 'Difficult_Rocket\'
|
||||
allPython.ps1 -OO -m compileall 'libs\'
|
||||
allPython.ps1 -OO -m compileall 'Difficult_Rocket\'
|
Loading…
Reference in New Issue
Block a user