sudo-give-me-coffee / wine32-deploy

A tool to creating AppImages for 32-bit Microsoft Windows® applications
Other
61 stars 2 forks source link

My build is heaps smaller in size than the release, doesn't work #13

Closed hippyau closed 4 years ago

hippyau commented 4 years ago

Pulled from github today for the fix in readlink issue, and my resulting build is 151868K as opposed to the release which is 346940K which makes me believe something is missing from my build.

my target now does not complain about WINEPREFIX, instead it complains:

Starting C:/windows/explorer.exe...
/tmp/.mount_Wine-4hidcOn/wineserver:  line 35: /tmp/.mount_Wine-4hidcOn/lib/ld-linux.so.2: No such file or directory  
/tmp/.mount_Wine-4hidcOn/wineserver:  line 35: /tmp/.mount_Wine-4hidcOn/lib/ld-linux.so.2: No such file or directory 

I note in Wine.AppDir/lib that ld-linux.so.2 in not there.

find . | grep ld-linux in the win32-deploy folder finds nothing.

My build went as follows...

hip@hip-Precision-5530:~/mkappimg/wine32-deploy$ sudo ./build.sh
[sudo] password for hip: 
Hit:1 http://au.archive.ubuntu.com/ubuntu disco InRelease
Hit:2 https://dl.winehq.org/wine-builds/ubuntu disco InRelease                                                                                                                              
Hit:3 http://au.archive.ubuntu.com/ubuntu disco-updates InRelease                                                                                                                           
Hit:4 http://au.archive.ubuntu.com/ubuntu disco-backports InRelease                                                                                                
Hit:5 http://packages.microsoft.com/repos/vscode stable InRelease                                                                                                  
Hit:6 http://security.ubuntu.com/ubuntu disco-security InRelease                                         
Hit:7 http://ppa.launchpad.net/gezakovacs/ppa/ubuntu disco InRelease
Hit:8 http://linux.teamviewer.com/deb stable InRelease                                  
Hit:9 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu disco InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
6 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gzip is already the newest version (1.9-3).
wget is already the newest version (1.20.1-1ubuntu4).
aptitude is already the newest version (0.8.11-3ubuntu1).
cabextract is already the newest version (1.9-2).
bzip2 is already the newest version (1.0.6-9ubuntu0.19.04.1).
curl is already the newest version (7.64.0-2ubuntu1.2).
file is already the newest version (1:5.35-4ubuntu0.1).
0 to upgrade, 0 to newly install, 0 to remove and 6 not to upgrade.
libhookexecv.so                                      100%[=====================================================================================================================>]   7.26K  --.-KB/s    in 0s      
2020-03-27 13:24:59 URL:https://github-production-release-asset-2e65be.s3.amazonaws.com/128619090/ba77b800-1281-11e9-8bdf-dac6c7d5c5e9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200327%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200327T032458Z&X-Amz-Expires=300&X-Amz-Signature=48922ae86b87e5cea575a5ce97ae68725b90128d2b8d56d3e4ce0089af7ba1ec&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dlibhookexecv.so&response-content-type=application%2Foctet-stream [7432/7432] -> "libhookexecv.so" [1]
wine-preloader_hook                                  100%[=====================================================================================================================>] 715.33K   388KB/s    in 1.8s    
2020-03-27 13:25:03 URL:https://github-production-release-asset-2e65be.s3.amazonaws.com/128619090/bb104e80-1281-11e9-86b9-79a5c03c1c09?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200327%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200327T032500Z&X-Amz-Expires=300&X-Amz-Signature=1bb64316db35af494312ad8f2aa37a1a90fa0b3c403f712112c799daa220e73e&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dwine-preloader_hook&response-content-type=application%2Foctet-stream [732496/732496] -> "wine-preloader_hook" [1]
winetricks                                           100%[=====================================================================================================================>] 823.36K  --.-KB/s    in 0.1s    
2020-03-27 13:25:03 URL:https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks [843118/843118] -> "winetricks" [1]
FINISHED --2020-03-27 13:25:03--
Total wall clock time: 9.0s
Downloaded: 3 files, 1.5M in 2.0s (779 KB/s)
The following NEW packages will be installed:
  cups:i386{b} cups-filters:i386{ab} cups-filters-core-drivers:i386{ab} fonts-wine{a} libcupsfilters1:i386{a} libcupsimage2:i386{a} libfontembed1:i386{a} libgutenprint9:i386{ab} libnspr4:i386{a} 
  libnss3:i386{a} libpoppler85:i386{a} libqpdf21:i386{a} libwine:i386 printer-driver-cups-pdf:i386 printer-driver-gutenprint:i386{ab} 
0 packages upgraded, 15 newly installed, 0 to remove and 6 not to upgrade.
Need to get 864 kB/28.0 MB of archives. After unpacking 230 MB will be used.
The following packages have unmet dependencies:
 cups-filters : Conflicts: cups-filters:i386 but 1.22.5-1 is to be installed
 cups-filters:i386 : Conflicts: cups-filters but 1.22.5-1 is installed
 printer-driver-gutenprint : Conflicts: printer-driver-gutenprint:i386 but 5.3.1-7build1 is to be installed
 printer-driver-gutenprint:i386 : Conflicts: printer-driver-gutenprint but 5.3.1-7build1 is installed
 libgutenprint9 : Conflicts: libgutenprint9:i386 but 5.3.1-7build1 is to be installed
 libgutenprint9:i386 : Depends: libgutenprint-common:i386 (>= 5.3.1-7build1) which is a virtual package and is not provided by any available package

                       Conflicts: libgutenprint9 but 5.3.1-7build1 is installed
 cups-filters-core-drivers : Conflicts: cups-filters-core-drivers:i386 but 1.22.5-1 is to be installed
 cups-filters-core-drivers:i386 : Conflicts: cups-filters-core-drivers but 1.22.5-1 is installed
 cups : Conflicts: cups:i386 but 2.2.10-4ubuntu2.1 is to be installed
 cups:i386 : Conflicts: cups but 2.2.10-4ubuntu2.1 is installed
The following actions will resolve these dependencies:

      Remove the following packages:                                                        
1)      cups [2.2.10-4ubuntu2.1 (disco-security, disco-updates, now)]                       
2)      cups-core-drivers [2.2.10-4ubuntu2.1 (disco-security, disco-updates, now)]          
3)      cups-filters [1.22.5-1 (disco, now)]                                                
4)      cups-filters-core-drivers [1.22.5-1 (disco, now)]                                   
5)      hplip [3.19.1+dfsg0-1 (disco, now)]                                                 
6)      printer-driver-foo2zjs [20171202dfsg0-2 (disco, now)]                               
7)      printer-driver-gutenprint [5.3.1-7build1 (disco, now)]                              
8)      printer-driver-hpcups [3.19.1+dfsg0-1 (disco, now)]                                 
9)      printer-driver-m2300w [0.51-13 (disco, now)]                                        
10)     printer-driver-pxljr [1.4+repack0-5 (disco, now)]                                   
11)     printer-driver-splix [2.0.0+svn315-7fakesync1 (disco, now)]                         

      Install the following packages:                                                       
12)     cups-core-drivers:i386 [2.2.10-4ubuntu2.1 (disco-security, disco-updates)]          

      Keep the following packages at their current version:                                 
13)     libgutenprint9:i386 [Not Installed]                                                 
14)     printer-driver-gutenprint:i386 [Not Installed]                                      

      Leave the following dependencies unresolved:                                          
15)     foomatic-db-compressed-ppds recommends cups-filters (>= 1.0.42) | foomatic-filters  
16)     libsane-hpaio recommends hplip (= 3.19.1+dfsg0-1)                                   
17)     openprinting-ppds recommends cups-filters (>= 1.0.42) | foomatic-filters            
18)     printer-driver-foo2zjs-common recommends printer-driver-foo2zjs (>= 20171202dfsg0-2)
19)     cups recommends cups-filters (>= 1.0.42) | foomatic-filters                         
20)     cups recommends printer-driver-gutenprint                                           
21)     cups recommends cups-filters (>= 1.0.36) | ghostscript-cups                         
22)     ubuntu-desktop recommends cups-filters                                              
23)     ubuntu-desktop recommends hplip                                                     
24)     ubuntu-desktop recommends printer-driver-foo2zjs                                    
25)     ubuntu-desktop recommends printer-driver-m2300w                                     
26)     ubuntu-desktop recommends printer-driver-pxljr                                      
27)     ubuntu-desktop recommends printer-driver-splix                                      
28)     ubuntu-desktop-minimal recommends cups-filters                                      
29)     ubuntu-desktop-minimal recommends hplip                                             
30)     ubuntu-desktop-minimal recommends printer-driver-foo2zjs                            
31)     ubuntu-desktop-minimal recommends printer-driver-m2300w                             
32)     ubuntu-desktop-minimal recommends printer-driver-pxljr                              
33)     ubuntu-desktop-minimal recommends printer-driver-splix                              
34)     cups:i386 recommends printer-driver-gutenprint:i386                                 

The following packages have unmet dependencies:
 cups-filters-core-drivers:i386 : Depends: cups-ipp-utils:i386 but it is not going to be installed
The following actions will resolve these dependencies:

      Install the following packages:                                                     
1)      ippsample:i386 [0.0+20180213-0ubuntu1 (disco)]                                    
2)      liblouis-bin [3.8.0-2 (disco)]                                                    

      Leave the following dependencies unresolved:                                        
3)      foomatic-db-compressed-ppds recommends cups-filters (>= 1.0.42) | foomatic-filters
4)      openprinting-ppds recommends cups-filters (>= 1.0.42) | foomatic-filters          
5)      ubuntu-desktop recommends cups-filters                                            
6)      ubuntu-desktop recommends hplip                                                   
7)      ubuntu-desktop recommends printer-driver-foo2zjs                                  
8)      ubuntu-desktop recommends printer-driver-m2300w                                   
9)      ubuntu-desktop recommends printer-driver-pxljr                                    
10)     ubuntu-desktop recommends printer-driver-splix                                    
11)     ubuntu-desktop-minimal recommends cups-filters                                    
12)     ubuntu-desktop-minimal recommends hplip                                           
13)     ubuntu-desktop-minimal recommends printer-driver-foo2zjs                          
14)     ubuntu-desktop-minimal recommends printer-driver-m2300w                           
15)     ubuntu-desktop-minimal recommends printer-driver-pxljr                            
16)     ubuntu-desktop-minimal recommends printer-driver-splix                            

The following NEW packages will be installed:
  cups:i386 cups-core-drivers:i386{a} cups-filters:i386{a} cups-filters-core-drivers:i386{a} fonts-wine{a} ippsample:i386{a} libcupsfilters1:i386{a} libcupsimage2:i386{a} libfontembed1:i386{a} 
  liblouis-bin{a} libnspr4:i386{a} libnss3:i386{a} libpoppler85:i386{a} libqpdf21:i386{a} libwine:i386 printer-driver-cups-pdf:i386 
The following packages will be REMOVED:
  cups{a} cups-core-drivers{a} cups-filters{a} cups-filters-core-drivers{a} cups-ipp-utils{u} dc{u} hplip{a} hplip-data{u} libfontembed1{u} libgutenprint-common{u} libgutenprint9{u} libhpmud0{u} 
  liblouisutdml-bin{u} liblouisutdml-data{u} liblouisutdml8{u} libqpdf21{u} libsane-hpaio{u} mscompress{u} printer-driver-foo2zjs{a} printer-driver-foo2zjs-common{u} printer-driver-gutenprint{a} 
  printer-driver-hpcups{a} printer-driver-m2300w{a} printer-driver-postscript-hp{u} printer-driver-pxljr{a} printer-driver-splix{a} python3-pexpect{u} python3-ptyprocess{u} python3-renderpm{u} 
  python3-reportlab{u} python3-reportlab-accel{u} 
The following packages are RECOMMENDED but will NOT be installed:
  printer-driver-gutenprint:i386 
0 packages upgraded, 16 newly installed, 31 to remove and 6 not to upgrade.
Need to get 0 B/34.5 MB of archives. After unpacking 195 MB will be used.

Current status: 0 (-6) upgradable.
appimagetool-x86_64.AppImage  data    flags        LICENSE.md                       README.md  resources          Wine.AppDir          winetricks
build.sh              Dockerfile  libhookexecv.so  PlayOnLinux-wine-4.21-upstream-linux-x86.tar.gz  recipes    Wine-4.21-x86_64.AppImage  wine-preloader_hook
/home/hip/mkappimg/wine32-deploy
wine32-deploy
appimagetool, continuous build (commit 7392c48), build 2120 built on 2020-03-10 18:42:43 UTC
Using architecture x86_64
/home/hip/mkappimg/wine32-deploy/Wine.AppDir should be packaged as Wine-x86_64.AppImage
WARNING: AppStream upstream metadata is missing, please consider creating it
         in usr/share/metainfo/wine.appdata.xml
         Please see https://www.freedesktop.org/software/appstream/docs/chap-Quickstart.html#sect-Quickstart-DesktopApps
         for more information or use the generator at http://output.jsbin.com/qoqukof.
Generating squashfs...
Parallel mksquashfs: Using 6 processors
Creating 4.0 filesystem on Wine-x86_64.AppImage, block size 131072.
[================================================================================================================================================================================================-] 5653/5653 100%

Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 131072
    compressed data, compressed metadata, compressed fragments,
    compressed xattrs, compressed ids
    duplicates are removed
Filesystem size 151680.33 Kbytes (148.13 Mbytes)
    33.84% of uncompressed filesystem size (448170.51 Kbytes)
Inode table size 38319 bytes (37.42 Kbytes)
    35.77% of uncompressed inode table size (107132 bytes)
Directory table size 28577 bytes (27.91 Kbytes)
    44.63% of uncompressed directory table size (64033 bytes)
Number of duplicate files found 104
Number of inodes 2894
Number of files 2729
Number of fragments 396
Number of symbolic links  52
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 113
Number of ids (unique uids + gids) 1
Number of uids 1
    root (0)
Number of gids 1
    root (0)
Embedding ELF...
Marking the AppImage as executable...
Embedding MD5 digest
Success

Please consider submitting your AppImage to AppImageHub, the crowd-sourced
central directory of available AppImages, by opening a pull request
at https://github.com/AppImage/appimage.github.io
sudo-give-me-coffee commented 4 years ago

You is building wine32-deploy... this is made for building with docker:

https://github.com/sudo-give-me-coffee/wine32-deploy/blob/80fc4c5dc4095eab953da2ae860d7f5a46d4578d/.travis.yml#L8-L11

For deploying Windows application you should be run the pre build versions

hippyau commented 4 years ago

Ahhh.... sorry. I can't use prebuilt because of readlink issue I raised.

Thanks 😀

sudo-give-me-coffee commented 4 years ago

I fixed it, i tested with busybox its working now