Skip to content

Commit 6fb42b3

Browse files
committed
4.6-Linux build script added
Make life easier, also readme inside prerequisite folder updated
1 parent aed4d0b commit 6fb42b3

File tree

7 files changed

+102
-15
lines changed

7 files changed

+102
-15
lines changed

ifme/frmMain.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,6 @@ private void BGThread_DoWork(object sender, DoWorkEventArgs e)
11031103

11041104
int id = int.Parse(MkvExtractId.AttachmentData[q, 2]);
11051105
string file = MkvExtractId.AttachmentData[q, 0];
1106-
string mime = MkvExtractId.AttachmentData[q, 1];
11071106

11081107
cmdath += String.Format("{0}:\"{1}\" ", id, Path.Combine(tmp, file));
11091108

File renamed without changes.

build.cmd renamed to make.cmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ cls
77
echo.
88
echo This script allowing publish IFME after compile. Using %CompileMode% build.
99
echo 1. ifme.exe
10-
echo 2. ifme.hitoha.dll
11-
echo 3. ifme.hitoha.kawaii.dll
10+
echo 2. ifme.framework.dll
1211
echo.
1312
echo Please download these file and put on "prerequisite" folder!
1413
echo 1. addons\* (all addons)

make.sh

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
#!/bin/bash
2+
clear
3+
# variable
4+
cm="Release"
5+
bd="_build"
6+
msbulid="/usr/bin/xbuild"
7+
echo " "
8+
echo "This script allowing publish IFME after compile. Using $cm build."
9+
echo " 1. ifme.exe"
10+
echo " 2. ifme.framework.dll"
11+
echo " "
12+
echo "Please download these file and put on \"prerequisite\" folder!"
13+
echo " 1. addons/* (all addons)"
14+
echo " 2. libmediainfo.so.0 (64bit)"
15+
echo " 3. libzen.so.0 (64bit)"
16+
echo " 4. libgpac.so.3 (64bit)"
17+
echo " 5. libmozjs185.so.1.0 (any?)"
18+
echo " 6. 7za (64bit)"
19+
echo " "
20+
echo " "
21+
echo "Make sure you have install \"mono-xbuild\", if not press CTRL+C"
22+
echo " "
23+
echo "Starting in 10 seconds..."
24+
sleep 10
25+
echo " "
26+
echo " "
27+
echo " "
28+
29+
echo "Cleaning old build folder"
30+
rm -r -f ./$bd
31+
mkdir ./$bd
32+
mkdir ./$bd/addons
33+
mkdir ./$bd/lang
34+
35+
echo "Remove previous compiled"
36+
rm -r -f ./ifme/bin/x64/$cm
37+
mkdir ./ifme/bin/x64/$cm
38+
39+
echo "Compiling..."
40+
$msbulid /nologo /verbosity:normal ifme.sln /t:Build /p:Configuration=$cm
41+
42+
echo "Copy main files"
43+
cp ./ifme/bin/x64/$cm/iso.gg ./$bd/iso.gg
44+
cp ./ifme/bin/x64/$cm/ifme.exe ./$bd/ifme.exe
45+
cp ./ifme/bin/x64/$cm/ifme.exe.config ./$bd/ifme.exe.config
46+
cp ./ifme/bin/x64/$cm/ifme.framework.dll ./$bd/ifme.framework.dll
47+
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>" > ./$bd/ifme.framework.dll.config
48+
echo "<configuration>" >> ./$bd/ifme.framework.dll.config
49+
echo " <dllmap dll=\"MediaInfo.dll\" target=\"libmediainfo.so.0\"/>" >> ./$bd/ifme.framework.dll.config
50+
echo "</configuration>" >> ./$bd/ifme.framework.dll.config
51+
cp -avr ./ifme/bin/x64/$cm/lang/ ./$bd/
52+
cp ./installer/text_addon_license.txt ./$bd/LICENSE_ADDONS
53+
cp ./installer/text_gpl2.txt ./$bd/LICENSE
54+
55+
echo "Copy prerequisite"
56+
cp ./prerequisite/linux/7za ./$bd/unpack
57+
cp ./prerequisite/linux/ifme.sh ./$bd/ifme.sh
58+
cp -avr ./prerequisite/linux/addons/ ./$bd/
59+
cp -avr ./prerequisite/linux/lib* ./$bd/
60+
61+
echo "Adjust permission"
62+
chmod +x ./$bd/ifme.sh
63+
chmod +x ./$bd/ifme.exe
64+
chmod +x ./$bd/ifme.framework.dll
65+
chmod +x ./$bd/unpack
66+
67+
echo " "
68+
echo " "
69+
echo "Make sure binary file inside addons folder has \"execute\" permission."
70+
echo "Build completed"

prerequisite/linux/_readme.txt

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
Put all IFME prerequisite library and file here!
1+
Put all IFME prerequisite library, addons and file here!
22

3-
Main prerequisite for Linux:
4-
1. libmediainfo.so.0 (64bit)
5-
2. libzen.so.0 (64bit, required by MediaInfo)
6-
3. 7za (64bit)
3+
Main prerequisite for Linux (64bit):
4+
1. libgpac.so.3 (required by MP4Box)
5+
2. libmediainfo.so.0 (required by IFME)
6+
3. libzen.so.0 (required by libmediainfo.so.0)
7+
4. libmozjs185.so.1.0 (required by mkvmerge, mkvextract)
78

89
Addons:
910
1. Create "addons" folder.
1011
2. Download all addons https://sourceforge.net/projects/ifme/files/addons/linux
11-
3. Extract all to addons folder
12+
3. Extract all to addons folder.
13+
4. Make sure they have correct "permission" and binary with "execute" permission.
1214

13-
Additional prerequisite:
15+
Additional prerequisite:
16+
To make it working, mono-runtime, libboost-all-dev is required.

prerequisite/linux/ifme.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
clear
3+
echo " "
4+
echo "Make sure you have \"mono-runtime\" and \"libboost-all-dev\" installed"
5+
echo "for debian based (ubuntu, linux mint), simply run:"
6+
echo " sudo apt-get install mono-runtime libboost-all-dev"
7+
echo " "
8+
sleep 1
9+
echo "If you facing some permission error, I suggest to re-install"
10+
echo "because it may deleted IFME files and folders :)"
11+
echo " "
12+
sleep 1
13+
echo "Setup temporary library path at $(pwd)"
14+
unset LD_LIBRARY_PATH
15+
export LD_LIBRARY_PATH=$(pwd):$LD_LIBRARY_PATH
16+
mono --debug ifme.exe && unset LD_LIBRARY_PATH

prerequisite/windows/_readme.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
Put all IFME prerequisite library and file here!
1+
Put all IFME prerequisite library, addons and file here!
22

3-
Main prerequisite for Windows:
4-
1. MediaInfo.dll (64bit)
5-
2. 7za.exe (64bit)
6-
3. wget.exe (32bit, static)
3+
Main prerequisite for Windows (64bit):
4+
1. MediaInfo.dll
5+
2. 7za.exe
6+
3. wget.exe (get an static build)
77

88
Addons:
99
1. Create "addons" folder.

0 commit comments

Comments
 (0)