ivan-hc / ArchImage

Build AppImage packages for all distributions but including Arch Linux packages. Powered by JuNest.
GNU General Public License v3.0
106 stars 1 forks source link

build expect command , it always temporize:cp: cannot stat '': No such file or directory #6

Closed newyorkthink closed 11 months ago

newyorkthink commented 11 months ago
gpg: depth: 1  valid:   5  signed:  95  trust: 0-, 0q, 0n, 5m, 0f, 0u
gpg: depth: 2  valid:  73  signed:  27  trust: 73-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2023-10-27
==> Updating trust database...
gpg: next trustdb check due at 2023-10-27
(27/32) installing libutempter                                                                                                  [##############################################################################] 100%
(28/32) upgrading util-linux                                                                                                    [##############################################################################] 100%
(29/32) upgrading fakeroot                                                                                                      [##############################################################################] 100%
(30/32) installing db                                                                                                           [##############################################################################] 100%
(31/32) upgrading perl                                                                                                          [##############################################################################] 100%
(32/32) upgrading git                                                                                                           [##############################################################################] 100%
:: Running post-transaction hooks...
(1/2) Rebuilding certificate stores...
(2/2) Warn about old perl modules
:: Synchronizing package databases...
 core                                                                                               132.0 KiB   169 KiB/s 00:01 [##############################################################################] 100%
 extra                                                                                                8.3 MiB  7.20 MiB/s 00:01 [##############################################################################] 100%
 junest                                                                                            1728.0   B  2.42 KiB/s 00:01 [##############################################################################] 100%
 multilib                                                                                           143.1 KiB   606 KiB/s 00:00 [##############################################################################] 100%
resolving dependencies...
looking for conflicting packages...

Packages (3) tcl-8.6.13-1  expect-5.45.4-4  gnu-free-fonts-20120503-8

Total Download Size:    5.93 MiB
Total Installed Size:  13.84 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 gnu-free-fonts-20120503-8-any                                                                        3.2 MiB  3.02 MiB/s 00:01 [##############################################################################] 100%
 tcl-8.6.13-1-x86_64                                                                                  2.5 MiB  5.46 MiB/s 00:00 [##############################################################################] 100%
 expect-5.45.4-4-x86_64                                                                             186.7 KiB   902 KiB/s 00:00 [##############################################################################] 100%
 Total (3/3)                                                                                          5.9 MiB  2.58 MiB/s 00:02 [##############################################################################] 100%
(3/3) checking keys in keyring                                                                                                  [##############################################################################] 100%
(3/3) checking package integrity                                                                                                [##############################################################################] 100%
(3/3) loading package files                                                                                                     [##############################################################################] 100%
(3/3) checking for file conflicts                                                                                               [##############################################################################] 100%
(3/3) checking available disk space                                                                                             [##############################################################################] 100%
:: Processing package changes...
(1/3) installing gnu-free-fonts                                                                                                 [##############################################################################] 100%
(2/3) installing tcl                                                                                                            [##############################################################################] 100%
(3/3) installing expect                                                                                                         [##############################################################################] 100%
grep: ./.junest/usr/share/applications/*: No such file or directory
cp: cannot stat '': No such file or directory

it cannot run

ivan-hc commented 11 months ago

The good thing of Arch Linux packages section on the website is that you can read the content of each package without having to download it.

AppImages expect that the main dir (app.AppDir) have a launcher (.desktop) and icon (normally listed in the .deskto file) near the AppRun and other stuff.

I see you're installing expect and tlc: none of them have a /usr/share/applications/*.desktop file into the package (see "Package content" for tlc at https://archlinux.org/packages/extra/x86_64/tcl/ and for expect at https://archlinux.org/packages/extra/x86_64/expect/ ).

The next time you face an issue like this, read the output and understand why it is acting like this.

grep: ./.junest/usr/share/applications/*: No such file or directory

this means that there is not a .desktop file containing what the script is asking for (see line 61), so...

cp: cannot stat '': No such file or directory

..the script can't copy that .desktop file to the root of the AppDir (line 62).

Read the scripts, line by line, and be sure that this is able to do what you expect it should do. In this case you ask it to do something that can't do.

Add a launcher and a icon manually in the script. It is just a shell script. Study the commands to use in it to perform what you want.