Skip to content

Commit a5d230d

Browse files
authored
Merge pull request #1 from dmpas/develop
1.0.0
2 parents e49f8eb + 0b55ca6 commit a5d230d

File tree

4 files changed

+6
-16
lines changed

4 files changed

+6
-16
lines changed

appveyor.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 0.1.0-{build}
1+
version: 1.0.0-{build}
22
before_build:
33
- ps: nuget restore
44
init:
@@ -7,19 +7,9 @@ init:
77
- ps: Restart-Computer
88
install:
99
- cmd: >-
10-
mkdir engine
10+
choco install onescript.cli -source https://www.myget.org/F/onescript -y
1111
12-
cd engine
13-
14-
curl -o os.exe http://oscript.io/downloads/latest/exe
15-
16-
os.exe /silent
17-
18-
set PATH=%ProgramFiles(x86)%\OneScript\bin;%PATH%
19-
20-
cd ..
21-
22-
oscript -version
12+
refreshenv
2313
2414
opm install opm
2515

oslib/packagedef

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Описание
22
.Имя("v8unpack")
3-
.Версия("0.1.0")
3+
.Версия("1.0.0")
44
.Автор("Sergey Batanov")
55
.АдресАвтора("sergey.batanov@dmpas.ru")
66
.Описание("Компонента работы с файлами формата 8")

v8unpack/File8Reader.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public void Extract(File8 element, string destDir, bool recursiveUnpack = false)
115115

116116
if (blockExtractor.IsContainer && recursiveUnpack)
117117
{
118-
string outputDirectory = Path.Combine(Path.GetFileName(destDir), element.Name);
118+
string outputDirectory = Path.Combine(destDir, element.Name);
119119
var tmpData = new MemoryStream(); // TODO: переделать MemoryStream --> FileStream
120120
fileExtractor.CopyTo(tmpData);
121121
tmpData.Seek(0, SeekOrigin.Begin);
@@ -127,7 +127,7 @@ public void Extract(File8 element, string destDir, bool recursiveUnpack = false)
127127
}
128128

129129
// Просто файл
130-
string outputFileName = Path.Combine(Path.GetFullPath(destDir), element.Name);
130+
string outputFileName = Path.Combine(destDir, element.Name);
131131
using (var outputFile = new FileStream(outputFileName, FileMode.Create))
132132
{
133133
fileExtractor.CopyTo(outputFile);

v8unpack/v8unpack.csproj

100644100755
File mode changed.

0 commit comments

Comments
 (0)